Ticket #3: mythweb.diskusage.diff
File mythweb.diskusage.diff, 3.4 KB (added by , 20 years ago) |
---|
-
mythweb/themes/Default/recorded_programs.php
14 14 // Print the main page header 15 15 parent::print_header("MythWeb - Recorded Programs"); 16 16 // Print the page contents 17 global $All_Shows, $Total_Time ;17 global $All_Shows, $Total_Time, $Total_Used; 18 18 ?> 19 19 20 20 <script language="JavaScript" type="text/javascript"> … … 204 204 </table> 205 205 <?php 206 206 echo '<p align="right" style="padding-right: 75px">' 207 .t('$1 programs, using $2 ($3) out of $4 .', t($GLOBALS['Total_Programs']),208 nice_filesize( disk_used),207 .t('$1 programs, using $2 ($3) out of $4 ($5 free).', t($GLOBALS['Total_Programs']), 208 nice_filesize($Total_Used), 209 209 nice_length($Total_Time), 210 nice_filesize(disk_size)) 210 nice_filesize(disk_size), 211 nice_filesize(disk_size - disk_used)) 211 212 .'</p>'; 212 213 213 214 // Print the main page footer -
mythweb/recorded_programs.php
65 65 66 66 // Parse the program list 67 67 $recordings = get_backend_rows('QUERY_RECORDINGS Delete'); 68 $Total_Used = 0; 68 69 $Total_Time = 0; 69 70 $Total_Programs = 0; 70 71 $All_Shows = array(); … … 81 82 // Make sure this is a valid show 82 83 if (!$show->chanid || $show->length < 1) 83 84 continue; 84 // Keep track of the total time 85 // Keep track of the total time and disk space used 85 86 $Total_Time += $show->length; 87 $Total_Used += $show->filesize; 86 88 // Skip programs the user doesn't want to look at, but keep track of their names and how many episodes we have recorded 87 89 $Total_Programs++; 88 90 $Program_Titles[$record[0]]++; -
mythweb/languages/English.php
17 17 // Shared Terms 18 18 '$1 min' => '', 19 19 '$1 mins' => '', 20 '$1 programs, using $2 ($3) out of $4 .'=> '',20 '$1 programs, using $2 ($3) out of $4 ($5 free).' => '', 21 21 '$1 to $2' => '', 22 22 'Advanced Options' => '', 23 23 'Airtime' => '', 24 24 'All recordings' => '', 25 25 'Auto-expire recordings' => '', 26 26 'Auto-flag commercials' => '', 27 'Auto-transcode' => '', 27 28 'Backend Status' => '', 28 29 'Cancel this schedule.' => '', 29 30 'Category' => '',