mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-28 01:28:30 +00:00
solve double counting at start issue
This commit is contained in:
parent
b38ab1117e
commit
8ccadeb7bb
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user