Skip to content

Commit ffe7c54

Browse files
committed
Simplify percent on MythWeb stats page.
1 parent 3a6fee7 commit ffe7c54

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

modules/stats/handler.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@
3434
if ($_REQUEST['count_dropdown'] == 'all')
3535
$limit = '';
3636

37-
// How many tuners are tehre?
38-
$tuners = $db->query_col('SELECT COUNT(*)
39-
FROM capturecard');
4037

41-
// Get how many show titles their are
38+
// Get how many show titles there are
4239
$title_count = $db->query_num_rows('SELECT DISTINCT title
4340
FROM oldrecorded'.$where);
4441

modules/stats/tmpl/default/stats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<dt><?php echo t('Total Recorded'); ?>:</dt>
6868
<dd><?php if(!is_null($time)) echo nice_length($time); else echo "0"; ?></dd>
6969
<dt><?php echo t('Percent of time spent recording'); ?>:</dt>
70-
<dd><?php if(($last - $first)!=0 && $tuners > 0) echo intval((($time / ($last - $first)) * 100)/$tuners); else echo "0"; ?>%</dd>
70+
<dd><?php if(($last - $first)!=0) echo intval(($time / ($last - $first)) * 100); else echo "0"; ?>%</dd>
7171
</dl>
7272
</div>
7373

0 commit comments

Comments
 (0)