Ticket #4728: mythweb_stats.diff
File mythweb_stats.diff, 1.1 KB (added by , 16 years ago) |
---|
-
mythweb/modules/stats/tmpl/default/stats.php
67 67 <dt><?php echo t('Last recording'); ?>:</dt> 68 68 <dd><?php echo date('l F jS, Y', $last); ?></dd> 69 69 <dt><?php echo t('Total Running Time'); ?>:</dt> 70 <dd><?php echo nice_length($last - $first); ?></dd>70 <dd><?php if(($last - $first)!=0) echo nice_length($last - $first); else echo "0"; ?></dd> 71 71 <dt><?php echo t('Total Recorded'); ?>:</dt> 72 <dd><?php echo nice_length($time); ?></dd>72 <dd><?php if(!is_null($time)) echo nice_length($time); else echo "0"; ?></dd> 73 73 <dt><?php echo t('Percent of time spent recording'); ?>:</dt> 74 <dd><?php echo intval(($time / ($last - $first)) * 100); ?>%</dd>74 <dd><?php if(($last - $first)!=0) echo intval(($time / ($last - $first)) * 100); else echo "0"; ?>%</dd> 75 75 </dl> 76 76 </div> 77 77