Skip to content

Commit acb92bf

Browse files
Add capture and analysis fps totals
1 parent 9765379 commit acb92bf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

web/skins/classic/views/console.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@
111111
$maxWidth = 0;
112112
$maxHeight = 0;
113113
$zoneCount = 0;
114-
$total_capturing_bandwidth=0;
114+
$total_capturing_bandwidth = 0;
115+
$total_fps = 0;
116+
$total_analysis_fps = 0;
115117

116118
$status_counts = array();
117119
for ( $i = 0; $i < count($displayMonitors); $i++ ) {
@@ -430,11 +432,13 @@
430432
if ( isset($monitor['AnalysisFPS'])) {
431433
// and ($monitor['Analysing'] != 'None')) {
432434
$fps_string .= '/' . $monitor['AnalysisFPS'];
435+
$total_analysis_fps += $monitor['AnalysisFPS'];
433436
}
434437
if ($fps_string) $fps_string .= ' fps';
435438
if (!empty($monitor['CaptureBandwidth']))
436439
$fps_string .= ' ' . human_filesize($monitor['CaptureBandwidth']).'/s';
437440
$total_capturing_bandwidth += $monitor['CaptureBandwidth'];
441+
$total_fps += $monitor['CaptureFPS'];
438442
echo $fps_string;
439443
echo '</div>';
440444
} # end if offline
@@ -471,7 +475,8 @@
471475
<td class="colId"><?php echo translate('Total').":".count($displayMonitors) ?></td>
472476
<?php } ?>
473477
<td class="colName"></td>
474-
<td class="colFunction"><?php echo human_filesize($total_capturing_bandwidth ).'/s' ?></td>
478+
<td class="colFunction"><?php echo human_filesize($total_capturing_bandwidth ).'/s '.
479+
$total_fps.' fps / '.$total_analysis_fps.' fps' ?></td>
475480
<?php if ( count($Servers) ) { ?>
476481
<td class="colServer"></td>
477482
<?php } ?>

0 commit comments

Comments
 (0)