diff options
author | Fazlul Shahriar <fshahriar@gmail.com> | 2009-08-08 16:45:27 -0400 |
---|---|---|
committer | Fazlul Shahriar <fshahriar@gmail.com> | 2009-08-08 16:45:27 -0400 |
commit | 3c6ab1854e92467a7309cf244339c6f10c2b0d7d (patch) | |
tree | 8ad262133a440a8751f8f3e2c2ab9846f86a10b8 /src/cmd/draw | |
parent | 0e9f3966da196eee3353154d7da04fafe90e5644 (diff) | |
download | plan9port-3c6ab1854e92467a7309cf244339c6f10c2b0d7d.tar.gz plan9port-3c6ab1854e92467a7309cf244339c6f10c2b0d7d.tar.bz2 plan9port-3c6ab1854e92467a7309cf244339c6f10c2b0d7d.zip |
stats: make more stats work in Linux
http://codereview.appspot.com/96084
Diffstat (limited to 'src/cmd/draw')
-rw-r--r-- | src/cmd/draw/stats.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd/draw/stats.c b/src/cmd/draw/stats.c index 75069e2b..74b8b76c 100644 --- a/src/cmd/draw/stats.c +++ b/src/cmd/draw/stats.c @@ -28,6 +28,7 @@ enum enum { + V80211, Vbattery, Vcontext, Vcpu, @@ -51,6 +52,7 @@ enum char* labels[Nvalue] = { + "802.11", "battery", "context", "cpu", @@ -109,7 +111,7 @@ Machine *mach; Font *mediumfont; char *fontname; char *mysysname; -char argchars[] = "bcCeEfiIlmnsw"; +char argchars[] = "8bcCeEfiIlmnsw"; int pids[1024]; int parity; /* toggled to avoid patterns in textured background */ int nmach; @@ -748,6 +750,9 @@ threadmain(int argc, char *argv[]) default: fprint(2, "stats: internal error: unknown arg %c\n", args[i]); usage(); + case '8': + addgraph(V80211); + break; case 'b': addgraph(Vbattery); break; |