1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 13:39:10 +00:00

Merge pull request #219 from mxmlnkn/doubletotaltraffic

solve double counting at start issue
This commit is contained in:
Brenden Matthews 2016-03-21 09:14:14 -07:00
commit 448d13ff4d

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 */