todbot/blink1 — pull request #24 by ctgreybeard (2012-12-19 21:13:34+00:00)
Title: Alternate version of load monitoring

I am proposing this as an alternate to the current load-to-blink1.sh

I found that the monitor was slow to respond once the 15-minute threshold (and, to a lesser extent the 5-minute one also) when the current load was reduced. I believe that the monitor should check the shorter load average first and each longer threshold should control the color displayed. Thus when the load is low, a CPU intensive task ends for example, then the light would go to blue fairly quickly.

The key is that once the instantaneous load drops then the return to "normal" blue is fairly quick.

Note that the color is set at every loop. This is especially useful when some hacker (self reference!) is playing with blink1-tool while the script is running!

I've also set the thresholds rather low to facilitate testing. Your system numbers will, undoubtably, differ from mine.