]> git.gsnw.org Git - fping.git/commitdiff
revert sprint_tm change doing apparent wrong casting
authorDavid Schweikert <david@schweikert.ch>
Wed, 29 Jul 2020 16:15:46 +0000 (18:15 +0200)
committerDavid Schweikert <david@schweikert.ch>
Wed, 29 Jul 2020 16:15:46 +0000 (18:15 +0200)
src/fping.c

index 817340457bad5d45d3ab73f3845328852fab13dd..91f3f3a04d0b602398fef2b7d35005380dbc49de 100644 (file)
@@ -2621,7 +2621,7 @@ void print_warning(char* format, ...)
 const char* sprint_tm(int64_t ns)
 {
     static char buf[10];
-    double t = (double)(ns / 1e6);
+    double t = (double)ns / 1e6;
 
     if (t < 0.0) {
         /* negative (unexpected) */