summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh <joshua.liu@sourceobby.com>2025-01-22 11:34:54 -0500
committerJosh <joshua.liu@sourceobby.com>2025-01-22 11:34:54 -0500
commit355a640004ed33097555d88cc2dac9cdf75427b2 (patch)
treee740ffcf285298952b18cbda1d685880145cc083
parent429b9aff5f1347be5ebbe118680ee699c3b5e908 (diff)
feat: finished printing cores, might need some adjustments latermaster
-rw-r--r--main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.c b/main.c
index 510894e..81fd5c9 100644
--- a/main.c
+++ b/main.c
@@ -80,9 +80,11 @@ int printcores(char* proc_data) {
printf("+---+%s+---+%s+---+%s+---+\n", SPACE, SPACE, SPACE);
}
for (int i = 0; i < remainder; i++) {
- }
- for (int i = 0; i < core_num; i++) {
- printf("+---+\n| |\n+---+\n");
+ printf("+---+\n");
+ printf("|%s|\n", PROCSPACE);
+ printf("+---+");
+ repos();
+ move(1 + 40 + fullcpurows * 3, 1 + i * 5 * 2);
}
return 0;
}