diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-05 22:54:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-05 22:54:30 +0000 |
commit | fccb044c4d955c61dc61d7627865f0e3cd089668 (patch) | |
tree | d3eb21ab20c17888b323489f8a6b1dc468e54d44 /etc/inc | |
parent | b45ea70973d1c11cbc347aacf839f55a6d3694f5 (diff) | |
download | pfsense-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/inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 7 |
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; |