From: Bimba Shrestha Date: Fri, 3 Apr 2020 19:07:17 +0000 (-0700) Subject: removing max(1, ..) X-Git-Tag: v1.4.5^2~68^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf1856c26ff9c25dd0f7d92407674593ad926e0d;p=thirdparty%2Fzstd.git removing max(1, ..) --- diff --git a/programs/fileio.c b/programs/fileio.c index b8194ad61..6dd99f0fe 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -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);