]> git.saurik.com Git - redis.git/blobdiff - src/memtest.c
Fixed typo.
[redis.git] / src / memtest.c
index 56d566abd18206c9fd4c64976cd2dbf791283416..645d1da1ef4f52ee9ead2224881c4cfe626dbe14 100644 (file)
@@ -24,11 +24,13 @@ void memtest_progress_start(char *title, int pass) {
 
     printf("\x1b[H\x1b[2J");    /* Cursor home, clear screen. */
     /* Fill with dots. */
-    for (j = 0; j < ws.ws_col*ws.ws_row; j++) printf(".");
+    for (j = 0; j < ws.ws_col*(ws.ws_row-2); j++) printf(".");
+    printf("Please keep the test running several minutes per GB of memory.\n");
+    printf("Also check http://www.memtest86.com/ and http://pyropus.ca/software/memtester/");
     printf("\x1b[H\x1b[2K");          /* Cursor home, clear current line.  */
     printf("%s [%d]\n", title, pass); /* Print title. */
     progress_printed = 0;
-    progress_full = ws.ws_col*(ws.ws_row-1);
+    progress_full = ws.ws_col*(ws.ws_row-3);
     fflush(stdout);
 }
 
@@ -127,7 +129,7 @@ void memtest(size_t megabytes, int passes) {
     }
     memtest_test(megabytes,passes);
     printf("\nYour memory passed this test.\n");
-    printf("Please if you are stil in doubt use the following two tools:\n");
+    printf("Please if you are still in doubt use the following two tools:\n");
     printf("1) memtest86: http://www.memtest86.com/\n");
     printf("2) memtester: http://pyropus.ca/software/memtester/\n");
     exit(0);