From df9d43c62d9e0413e5d38783cacd73fb87f94ed2 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 8 Jan 2008 08:28:09 +0000 Subject: [PATCH] Fixes to total power plot generation --- examples/sky/sky-collect-plots/make-plots | 1 + examples/sky/sky-collect-plots/plot-power | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/sky/sky-collect-plots/make-plots b/examples/sky/sky-collect-plots/make-plots index 5f40dd946..7817872c3 100755 --- a/examples/sky/sky-collect-plots/make-plots +++ b/examples/sky/sky-collect-plots/make-plots @@ -14,6 +14,7 @@ for f in `echo data-*` cp lost-$f lost cp dup-$f dup cp parent-$f parent + cp power-$f power gnuplot plot-all for p in `echo plot-*.eps` do diff --git a/examples/sky/sky-collect-plots/plot-power b/examples/sky/sky-collect-plots/plot-power index 455e8509f..0a8353f2a 100644 --- a/examples/sky/sky-collect-plots/plot-power +++ b/examples/sky/sky-collect-plots/plot-power @@ -8,18 +8,18 @@ set style fill pattern #set key top left Left width -5 plot [:] [0:] \ -'power' using \ +'total-power' using \ 2:((0.0545 * $3 + 1.8 * $4 + 20.0 * $5 + 17.7 * $6 + 4.6 * $7) / 4096) * 3 / $1 \ with boxes title "Red LED", \ -'power' using \ +'total-power' using \ 2:((0.0545 * $3 + 1.8 * $4 + 20.0 * $5 + 17.7 * $6) / 4096) * 3 / $1 \ with boxes title "Radio transmit", \ -'power' using \ +'total-power' using \ 2:((0.0545 * $3 + 1.8 * $4 + 20.0 * $5) / 4096) * 3 / $1 \ with boxes title "CPU low-power mode", \ -'power' using \ +'total-power' using \ 2:((1.8 * $4 + 20.0 * $5) / 4096) * 3 / $1 \ with boxes title "CPU active mode", \ -'power' using \ +'total-power' using \ 2:((20.0 * $5) / 4096) * 3 / $1 \ with boxes title "Radio reception"