Commit Diff


commit - 7dd734321c2dd7eeca8bf3350f8786dc9174bef9
commit + 0c9b1cfd36c0d05942fa0e65d75536a4dc6ce748
blob - 86d9b2939a7252bb2d1815ff0b425881b766105f
blob + c5b883dc99950c3d04b8008e837f4a32816554fa
--- Makefile
+++ Makefile
@@ -1,4 +1,4 @@
-VERSION = 0.1
+VERSION = 0.2
 PREFIX = /usr/local
 MY_CFLAGS = -Wall -Wextra -DVERSION=\"${VERSION}\" ${CFLAGS}
 LIBS = -lutil -lncurses
blob - 871f1e32019c630bc7257536a167b08df1ac4b31
blob + d5622d190215cff29e190bac9443971f3ea333ae
--- apmtop.c
+++ apmtop.c
@@ -287,6 +287,8 @@ 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);