From: Costa Tsaousis (ktsaou) Date: Wed, 2 Nov 2016 07:19:02 +0000 (+0200) Subject: removed fix for 100% cpu time X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=498acc6853fe633374142d58feb11495064d1430;p=fping.git removed fix for 100% cpu time --- diff --git a/src/fping.c b/src/fping.c index acefc6a..205638a 100644 --- a/src/fping.c +++ b/src/fping.c @@ -1101,8 +1101,6 @@ void main_loop() /* Make sure we don't wait too long, in case a report is expected */ if( report_interval && ( loop_flag || count_flag ) ) { wait_time_next_report = timeval_diff ( ¤t_time, &next_report_time ); - if(wait_time_next_report < 0) - wait_time_next_report = -wait_time_next_report; if(wait_time_next_report < wait_time) { wait_time = wait_time_next_report; if(wait_time < 0) { wait_time = 0; }