Revision 6f069e92
Added by Chris Buechler about 9 years ago
src/usr/local/www/status_queues.php | ||
---|---|---|
125 | 125 |
$packet_s = round(100 * ($q->pps / $bigger_stat), 0); |
126 | 126 |
} else if ($bigger_stat != "0") { |
127 | 127 |
$packet_s = round(100 * ($q->bandwidth / $bigger_stat), 0); |
128 |
} |
|
129 |
if ($packet_s < 0) { |
|
128 |
} else { |
|
130 | 129 |
$packet_s = 0; |
131 | 130 |
} |
132 | 131 |
$finscript .= "$('#queue{$q->queuename}width').css('width','{$packet_s}%');"; |
Also available in: Unified diff
status_queues.php, default packet_s to 0 if it falls through to that point. Ticket #6329