Copy cur's snap_time to last when refreshing statistics. Fixes problem
where MB/s and tps statistics would always be zero, presumably because they were being averaged out over the time between now and when the system booted instead of a few seconds. PR: 58683
This commit is contained in:
parent
a7ed426851
commit
10ee440915
@ -147,6 +147,8 @@ fetchiostat()
|
||||
tmp_dinfo = last.dinfo;
|
||||
last.dinfo = cur.dinfo;
|
||||
cur.dinfo = tmp_dinfo;
|
||||
|
||||
last.snap_time = cur.snap_time;
|
||||
|
||||
/*
|
||||
* Here what we want to do is refresh our device stats.
|
||||
|
Loading…
Reference in New Issue
Block a user