Blame SOURCES/fix-incorrect-statistics.patch
|
|
da6692 |
From 445826446c32035b3c8e8a7780c4e4b885f0f98f Mon Sep 17 00:00:00 2001
|
|
|
da6692 |
From: Jan Macku <jamacku@redhat.com>
|
|
|
da6692 |
Date: Mon, 7 Dec 2020 15:08:14 +0100
|
|
|
da6692 |
Subject: [PATCH] ping: Fix incorrect statistics
|
|
|
da6692 |
|
|
|
da6692 |
---
|
|
|
da6692 |
ping_common.c | 2 +-
|
|
|
da6692 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
da6692 |
|
|
|
da6692 |
diff --git a/ping_common.c b/ping_common.c
|
|
|
da6692 |
index 040bf23..02cb5e1 100644
|
|
|
da6692 |
--- a/ping_common.c
|
|
|
da6692 |
+++ b/ping_common.c
|
|
|
da6692 |
@@ -934,7 +934,7 @@ void finish(void)
|
|
|
da6692 |
printf(", %g%% packet loss",
|
|
|
da6692 |
(float) ((((long long)(ntransmitted - nreceived)) * 100.0) /
|
|
|
da6692 |
ntransmitted));
|
|
|
da6692 |
- printf(", time %ldms", (1000*tv.tv_sec+tv.tv_usec+500)/1000);
|
|
|
da6692 |
+ printf(", time %ldms", 1000*tv.tv_sec+(tv.tv_usec+500)/1000);
|
|
|
da6692 |
}
|
|
|
da6692 |
putchar('\n');
|
|
|
da6692 |
|
|
|
da6692 |
--
|
|
|
da6692 |
2.28.0
|
|
|
da6692 |
|