1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00

Revert "Bugfix: $addr and $addrs couldn't find ip's before the first update."

This reverts commit 8ffb8b238d.

Surely, there is a better solution for that.
This commit is contained in:
Phil Sutter 2009-06-06 18:14:06 +02:00
parent 8ffb8b238d
commit 26ecdcf562
6 changed files with 5 additions and 6 deletions

View File

@ -405,6 +405,7 @@ static int pad_percents = 0;
static char *global_text = 0;
long global_text_lines;
static int total_updates;
static int updatereset;
int check_contains(char *f, char *s)

View File

@ -332,8 +332,6 @@ enum x_initialiser_state {
extern int output_methods;
extern enum x_initialiser_state x_initialised;
int total_updates;
#define DEFAULT_TEXT_BUFFER_SIZE_S "##DEFAULT_TEXT_BUFFER_SIZE"
#endif /* _conky_h_ */

View File

@ -187,7 +187,7 @@ void update_net_stats()
/* get delta */
delta = current_update_time - last_update_time;
if (delta <= 0.0001 && total_updates != 0) {
if (delta <= 0.0001) {
return;
}

View File

@ -310,7 +310,7 @@ void update_net_stats(void)
/* get delta */
delta = current_update_time - last_update_time;
if (delta <= 0.0001 && total_updates != 0) {
if (delta <= 0.0001) {
return;
}

View File

@ -173,7 +173,7 @@ void update_net_stats()
/* get delta */
delta = current_update_time - last_update_time;
if (delta <= 0.0001 && total_updates != 0) {
if (delta <= 0.0001) {
return;
}

View File

@ -200,7 +200,7 @@ void update_net_stats()
/* get delta */
delta = current_update_time - last_update_time;
if (delta <= 0.0001 && total_updates != 0) {
if (delta <= 0.0001) {
return;
}