diff --git a/src/conky.c b/src/conky.c index 14c70ca3..5a8738a2 100644 --- a/src/conky.c +++ b/src/conky.c @@ -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) diff --git a/src/conky.h b/src/conky.h index 63615f2e..78f30d6f 100644 --- a/src/conky.h +++ b/src/conky.h @@ -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_ */ diff --git a/src/freebsd.c b/src/freebsd.c index fcdcfce3..20c4e27b 100644 --- a/src/freebsd.c +++ b/src/freebsd.c @@ -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; } diff --git a/src/linux.c b/src/linux.c index c94caec2..74fceb35 100644 --- a/src/linux.c +++ b/src/linux.c @@ -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; } diff --git a/src/netbsd.c b/src/netbsd.c index 58f111d3..63023d58 100644 --- a/src/netbsd.c +++ b/src/netbsd.c @@ -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; } diff --git a/src/openbsd.c b/src/openbsd.c index 599f2528..5a1d3213 100644 --- a/src/openbsd.c +++ b/src/openbsd.c @@ -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; }