From: Teemu Toivola Date: Wed, 1 May 2019 21:09:14 +0000 (+0300) Subject: fix also summary estimates after previous commit X-Git-Tag: v2.3~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68694a89b80aadb02ad0df71f3532e114d437a8e;p=vnstat fix also summary estimates after previous commit --- diff --git a/src/dbshow.c b/src/dbshow.c index f9e7328..df1cc12 100644 --- a/src/dbshow.c +++ b/src/dbshow.c @@ -73,8 +73,6 @@ void showsummary(const interfaceinfo *interface, const int shortmode) current = time(NULL); yesterday = current - 86400; - e_rx = e_tx = 0; - if (interface->updated && !shortmode) { strftime(datebuff, DATEBUFFLEN, DATETIMEFORMAT, localtime(&interface->updated)); printf("Database updated: %s\n\n", datebuff); @@ -132,6 +130,7 @@ void showsummary(const interfaceinfo *interface, const int shortmode) return; } + e_rx = e_tx = 0; datalist_i = datalist; while (datalist_i != NULL) { @@ -212,6 +211,7 @@ void showsummary(const interfaceinfo *interface, const int shortmode) return; } + e_rx = e_tx = 0; datalist_i = datalist; while (datalist_i != NULL) {