mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Back out counter wrap fix from ticket 1494 as it causes more issues then
we were trying to solve.
This commit is contained in:
parent
63353c9e4e
commit
67c04e807b
@ -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 */
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user