From dc63b57bbe2634363c04022412582d421b85260f Mon Sep 17 00:00:00 2001 From: moosecrap Date: Mon, 17 Feb 2025 04:25:10 -0800 Subject: [PATCH] Cleanup for non-overwrite mode --- evga-icx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evga-icx.c b/evga-icx.c index 64cd1fb..0b92c12 100644 --- a/evga-icx.c +++ b/evga-icx.c @@ -174,7 +174,8 @@ int main (int argc, char **argv) /* print sensor info */ if (print_info) { do { - printf("\x1b[K"); /* Clear current console line (really just for overwrite mode) */ + if (overwrite) + printf("\x1b[K"); /* Clear current console line */ if (gpu_num == -1) { /* No GPU specified on command line, loop over all supported GPUs */