summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-05 22:54:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-05 22:54:30 +0000
commitfccb044c4d955c61dc61d7627865f0e3cd089668 (patch)
treed3eb21ab20c17888b323489f8a6b1dc468e54d44 /etc
parentb45ea70973d1c11cbc347aacf839f55a6d3694f5 (diff)
downloadpfsense-fccb044c4d955c61dc61d7627865f0e3cd089668.zip
pfsense-fccb044c4d955c61dc61d7627865f0e3cd089668.tar.gz
* Modify queue graph to show the amount of bandwidth going through each queue compared to total bandwidth
* Add current queue traffic speed
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index a2730e7..0a66d6e 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -566,13 +566,12 @@ function gather_altq_queue_stats() {
foreach ($stats_array as $stats_line) {
if (preg_match_all("/queue\s+(\w+)\s+/",$stats_line,$match_array))
$queue_name = $match_array[1][0];
- #\n+\/\n+
- if (preg_match_all("/qlength:\s+([0-99999]\/\s+[0-99999])\s+]/",$stats_line,$match_array))
- $qlength = $match_array[1][0];
+ if (preg_match_all("/measured:\s+.*packets\/s\,\s(.*)\s+\]/",$stats_line,$match_array))
+ $speed = $match_array[1][0];
if (preg_match_all("/measured:\s+(.*)packets/",$stats_line,$match_array)) {
$measured = $match_array[1][0];
if(stristr($queue_name,"root_") == false)
- array_push($queue_stats, "{$queue_name}|{$qlength}|{$measured}");
+ array_push($queue_stats, "{$queue_name}|{$speed}|{$measured}");
}
}
return $queue_stats;
OpenPOWER on IntegriCloud