Commits

bitbucket  committed 170d917 Merge

Merge branch 'unstable' of https://github.com/antirez/redis into unstable

  • Participants
  • Parent commits ae872d0, 93f61bb

Comments (0)

Files changed (1)

File src/memtest.c

 void memtest_progress_step(size_t curr, size_t size, char c) {
     size_t chars = ((unsigned long long)curr*progress_full)/size, j;
 
-    for (j = 0; j < chars-progress_printed; j++) {
-        printf("%c",c);
-        progress_printed++;
-    }
+    for (j = 0; j < chars-progress_printed; j++) printf("%c",c);
+    progress_printed = chars;
     fflush(stdout);
 }