summaryrefslogtreecommitdiffstats
path: root/usr/local/www/graph.php
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-10-29 22:00:56 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-10-29 22:00:56 +0000
commitf0a3ac473b2dfae7be3291da1395a3846018d2c0 (patch)
treea8beee21e5d189b32929a90730fb40abdf797661 /usr/local/www/graph.php
parentee5f368f27ab3f9ac132fa9bfcd1c96d428fd4d3 (diff)
downloadpfsense-f0a3ac473b2dfae7be3291da1395a3846018d2c0.zip
pfsense-f0a3ac473b2dfae7be3291da1395a3846018d2c0.tar.gz
Fix courtesey of Billm, hackathon 2007 conversation.
Forgotten commit.
Diffstat (limited to 'usr/local/www/graph.php')
-rwxr-xr-xusr/local/www/graph.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php
index 34cba2b..d79a877 100755
--- a/usr/local/www/graph.php
+++ b/usr/local/www/graph.php
@@ -196,13 +196,13 @@ function plot_data(obj) {
return handle_error();
var diff_ugmt = ugmt - last_ugmt;
- if (last_ifin > ifin) {
+ if (last_ifin < ifin) {
var diff_ifin = ifin - last_ifin;
} else {
real_last_ifin = (4294967296 - last_ifin)
var diff_ifin = ifin + real_last_ifin;
}
- if (last_ifout > ifout) {
+ if (last_ifout < ifout) {
var diff_ifout = ifout - last_ifout;
} else {
real_last_ifout = (4294967296 - last_ifout)
OpenPOWER on IntegriCloud