mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
dashboard: traffic: use client time (https://github.com/opnsense/core/issues/8225)
This commit is contained in:
parent
817e7fb11d
commit
8d3d392ae6
@ -179,7 +179,7 @@ export default class Traffic extends BaseWidget {
|
||||
dataset.hidden = !config.interfaces.includes(intf);
|
||||
}
|
||||
dataset.data.push({
|
||||
x: new Date(data.time * 1000.0),
|
||||
x: Date.now(),
|
||||
y: Math.round(((data.interfaces[intf][dataset.src_field]) / elapsed_time) * 8, 0)
|
||||
});
|
||||
dataset.last_time = data.time;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user