From e5b66d7a7fb50233d9ca3d9d829e8fc873ac9421 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Mon, 7 Dec 2009 21:13:04 +0100 Subject: [PATCH] Remove some strange network related code Reported by norsetto. This code disallows network traffic to be 0. Brenden says it once had a purpose, but noone can think of what would that be atm. --- src/linux.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/linux.c b/src/linux.c index b4fc672a..12b0104d 100644 --- a/src/linux.c +++ b/src/linux.c @@ -464,12 +464,6 @@ void update_net_stats(void) curtmp1 = curtmp1 + ns->net_rec[i]; curtmp2 = curtmp2 + ns->net_trans[i]; } - if (curtmp1 == 0) { - curtmp1 = 1; - } - if (curtmp2 == 0) { - curtmp2 = 1; - } ns->recv_speed = curtmp1 / (double) info.net_avg_samples; ns->trans_speed = curtmp2 / (double) info.net_avg_samples; if (info.net_avg_samples > 1) {