summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2026-01-02 22:04:21 -0500
committerWormHeamer2026-01-02 22:04:21 -0500
commit484705f20d0fc0e2c3f425e3f0ce94ca3806a30f (patch)
tree534a8517f73820243db71f86427e513f0c2aadae
parentb500b367f022853043801264140f91d6ac5b5640 (diff)
don't show max in scratch mem usage meter, just used & percentage
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 17d899c..bac7fac 100644
--- a/main.c
+++ b/main.c
@@ -654,7 +654,7 @@ void draw(void *ctx) {
}
size_t max = e.scratch.end - e.scratch.start;
size_t used = e.scratch.beg - e.scratch.start;
- vui_printf(-1, -1, "%.02f/%.02fk (%u%%)", used/1024.0, max / 1024.0, (100 * used) / max);
+ vui_printf(-1, -1, "%.02fk (%u%%)", used/1024.0, (used * 100) / max);
//FILE *f = fopen("scratch.dat", "wb");
//fwrite(e.scratch.start, 1, used, f);
//fclose(f);