[6.0] src/memtest.c

This commit is contained in:
tporadowski
2021-01-26 23:45:17 +01:00
parent 505b0251e1
commit 1a4a78e1b4
+5
View File
@@ -379,10 +379,15 @@ void memtest(size_t megabytes, int passes) {
ws.ws_row = 20;
}
#else
#if !defined(__HAIKU__)
if (ioctl(1, TIOCGWINSZ, &ws) == -1) {
ws.ws_col = 80;
ws.ws_row = 20;
}
#else
ws.ws_col = 80;
ws.ws_row = 20;
#endif
#endif
memtest_alloc_and_test(megabytes,passes);
printf("\nYour memory passed this test.\n");