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:
tjr 2003-11-01 02:06:02 +00:00
parent a7ed426851
commit 10ee440915

View File

@ -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.