1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 21:49:07 +00:00

solve double counting at start issue

This commit is contained in:
mxmlnkn 2016-02-21 10:34:46 +01:00
parent b38ab1117e
commit 8ccadeb7bb

View File

@ -470,10 +470,12 @@ int update_net_stats(void)
if (ns->last_read_recv == -1) {
ns->recv = r;
first = 1;
ns->last_read_recv = r;
}
if (ns->last_read_trans == -1) {
ns->trans = t;
first = 1;
ns->last_read_trans = t;
}
/* move current traffic statistic to last thereby obsoleting the
* current statistic */