]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Remove truncation of filename in zstd CLI log lines 290/head
authorDavid Lam <davidlam@fb.com>
Sat, 13 Aug 2016 18:26:21 +0000 (11:26 -0700)
committerDavid Lam <davidlam@fb.com>
Sat, 13 Aug 2016 18:26:21 +0000 (11:26 -0700)
programs/fileio.c

index b04ee3b047637b4178eeac7c6c6a03c55d7eba53..ca75e322471f970efc1e33cc7025520230f7a5b9 100644 (file)
@@ -364,9 +364,8 @@ static int FIO_compressFilename_internal(cRess_t ress,
     }
 
     /* Status */
-    if (strlen(srcFileName) > 20) srcFileName += strlen(srcFileName)-20; /* display last 20 characters */
     DISPLAYLEVEL(2, "\r%79s\r", "");
-    DISPLAYLEVEL(2,"%-20.20s :%6.2f%%   (%6llu => %6llu bytes, %s) \n", srcFileName,
+    DISPLAYLEVEL(2,"%-20s :%6.2f%%   (%6llu => %6llu bytes, %s) \n", srcFileName,
         (double)compressedfilesize/(readsize+(!readsize) /* avoid div by zero */ )*100,
         (unsigned long long)readsize, (unsigned long long) compressedfilesize,
          dstFileName);