]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
removing max(1, ..)
authorBimba Shrestha <bimbashrestha@fb.com>
Fri, 3 Apr 2020 19:07:17 +0000 (12:07 -0700)
committerBimba Shrestha <bimbashrestha@fb.com>
Fri, 3 Apr 2020 19:07:17 +0000 (12:07 -0700)
programs/fileio.c

index b8194ad6132f543bc1dd5052c7d1d83ab6d153d6..6dd99f0fe358ee9a963fbc36db956bd3f49ae933 100644 (file)
@@ -1389,7 +1389,7 @@ FIO_compressFilename_internal(FIO_prefs_t* const prefs,
     DISPLAYLEVEL(2, "\r%79s\r", "");
     DISPLAYLEVEL(2,"%-20s :%6.2f%%   (%6llu => %6llu bytes, %s) \n",
         srcFileName,
-        (double)compressedfilesize / (readsize+(!readsize)/*avoid div by zero*/) * 100,
+        (double)compressedfilesize / readsize * 100,
         (unsigned long long)readsize, (unsigned long long) compressedfilesize,
          dstFileName);