Bug #10429 » Pfsense Bug #10429.diff
/usr/local/www/status_traffic_totals.php Thu Oct 22 01:52:12 2020 | ||
---|---|---|
436 | 436 | |
437 | 437 |
$.each(raw_json.interfaces[interface_index].traffic.hour, function(hour_index, value) { |
438 | 438 | |
439 |
var date = Date.UTC(value.date.year, value.date.month-1, value.date.day, value.id);
|
|
439 |
var date = Date.UTC(value.date.year, value.date.month-1, value.date.day, value.time.hour);
|
|
440 | 440 | |
441 | 441 |
tx_series.push([date+((0-ServerUTCOffset)*3600000), value.tx]); |
442 | 442 |
rx_series.push([date+((0-ServerUTCOffset)*3600000), value.rx]); |
... | ... | |
657 | 657 | |
658 | 658 |
var date = Date.UTC(value.date.year, value.date.month-1, value.date.day); |
659 | 659 | |
660 |
localStorage.setItem(value.id+1, date);
|
|
660 |
localStorage.setItem(index, date);
|
|
661 | 661 | |
662 |
tx_series.push([value.id+1, value.tx]);
|
|
663 |
rx_series.push([value.id+1, value.rx]);
|
|
662 |
tx_series.push([index, value.tx]);
|
|
663 |
rx_series.push([index, value.rx]);
|
|
664 | 664 | |
665 | 665 |
}); |
666 | 666 |