diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-11-01 22:17:40 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-11-01 22:17:40 +0000 |
commit | 67c04e807bc7bdcd51e86f45d29f620051fad5eb (patch) | |
tree | 3e73e0bef77711f76c35fce84e4c3c25b9b1d3c2 /usr/local | |
parent | 63353c9e4ea72a2b4d67ddefa8bfcb3a14e7b3a0 (diff) | |
download | pfsense-67c04e807bc7bdcd51e86f45d29f620051fad5eb.zip pfsense-67c04e807bc7bdcd51e86f45d29f620051fad5eb.tar.gz |
Back out counter wrap fix from ticket 1494 as it causes more issues then
we were trying to solve.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/graph.php | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/usr/local/www/graph.php b/usr/local/www/graph.php index d79a877..f0230e6 100755 --- a/usr/local/www/graph.php +++ b/usr/local/www/graph.php @@ -196,19 +196,9 @@ function plot_data(obj) { return handle_error(); var diff_ugmt = ugmt - last_ugmt; - 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) { - var diff_ifout = ifout - last_ifout; - } else { - real_last_ifout = (4294967296 - last_ifout) - var diff_ifout = ifout + real_last_ifout; - } - + var diff_ifin = ifin - last_ifin; + var diff_ifout = ifout - last_ifout; + if (diff_ugmt == 0) diff_ugmt = 1; /* avoid division by zero */ |