commit 7dd734321c2dd7eeca8bf3350f8786dc9174bef9 from: Benjamin Stürz date: Sat Jan 06 01:56:22 2024 UTC Minor fixes commit - 29c14c1dfd1d4d884615e219ff3fc6ff7fd49752 commit + 7dd734321c2dd7eeca8bf3350f8786dc9174bef9 blob - 101e1ecc406cb95c551899d5e43b4c720d3edbfb blob + 871f1e32019c630bc7257536a167b08df1ac4b31 --- apmtop.c +++ apmtop.c @@ -287,8 +287,6 @@ draw_graph (struct graph *g, const char *fmt, int min, static void draw (struct display *dpy) { - clear (); - draw_graph (&dpy->g[G_CPUUSAGE], "CPU: %d%%", 0, 100); draw_graph (&dpy->g[G_CPUTEMP], "CPU: %d C", 0, 100); draw_graph (&dpy->g[G_CPUSPEED], "CPU: %d MHz", INT_MAX, INT_MIN); @@ -319,7 +317,6 @@ update_graph (int w, struct graph *g, int value) } else { g->log[entries] = value; } - fprintf (stderr, "entries=%d, w=%d, value=%d\n", entries, w, value); } static void @@ -397,6 +394,7 @@ main (int argc, char *argv[]) intrflush (stdscr, FALSE); keypad (stdscr, TRUE); halfdelay (dpy.delay); + curs_set (0); // Bootstrap the process. entries = 0;