commit - d27e2808427887d6ed81e2f7c07654b9da564789
commit + 048144dd69faf87abbcb28d9507f744f2aef6018
blob - 2d10930a7072ada31106b513e634ad08535b6e59
blob + cd760b84449a472464d9fc0dfe0ebfa66d7a95af
--- README.md
+++ README.md
# make install
```
+## Keybindings
+```
+q = quit
+1-5 = hide/unhide panels
++/- = increase/decrease delay
+SPACE = pause/resume
+```
+
## TODO
-- apmtop.1
+- man page
- Better error handling
- Code looks a little ugly
+- Add Farenheit mode, for people with a lot of freedom
- Bonus: calculate the cpuspeed() multiple times, between calls to update(),
and average the result, to make the measurments more precise
(cpuspeed can jump a lot, even within 100ms)
blob - da783449c0beaccea9b9c9b817e13b5bb1fb4d12
blob + 6753a50e89ff13a567e57cff3e604b5503261cc3
--- apmtop.c
+++ apmtop.c
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_CPUTEMP], "CPU: %d C", 0, 100);
draw_graph (&dpy->g[G_CPUSPEED], "CPU: %d MHz", INT_MAX, INT_MIN);
draw_graph (&dpy->g[G_BATTERY], "BAT: %d%%", 0, 100);
draw_graph (&dpy->g[G_POWER], "PWR: %dmW", INT_MAX, INT_MIN);
done:
endwin ();
+ free (dpy.cpus);
return 0;
}