diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-15 04:29:45 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-01-15 04:29:45 +0000 |
commit | a94ba7634d312728e25f888ff252e7c8a731a578 (patch) | |
tree | bc9ce13f3aec367151da394ef48aa7be43c1c678 /plugin_cpuinfo.c | |
parent | 504656e9484752c9c0596f153f27089c1961f501 (diff) | |
download | lcd4linux-a94ba7634d312728e25f888ff252e7c8a731a578.tar.gz |
[lcd4linux @ 2004-01-15 04:29:45 by reinelt]
moved lcd4linux.conf.sample to *.old
lcd4linux.conf.sample with new layout
new plugins 'loadavg' and 'meminfo'
text widget have pre- and postfix
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@311 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_cpuinfo.c')
-rw-r--r-- | plugin_cpuinfo.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugin_cpuinfo.c b/plugin_cpuinfo.c index 60b0880..e9d4036 100644 --- a/plugin_cpuinfo.c +++ b/plugin_cpuinfo.c @@ -1,4 +1,4 @@ -/* $Id: plugin_cpuinfo.c,v 1.2 2004/01/14 11:33:00 reinelt Exp $ +/* $Id: plugin_cpuinfo.c,v 1.3 2004/01/15 04:29:45 reinelt Exp $ * * plugin for /proc/cpuinfo parsing * @@ -23,6 +23,12 @@ * * * $Log: plugin_cpuinfo.c,v $ + * Revision 1.3 2004/01/15 04:29:45 reinelt + * moved lcd4linux.conf.sample to *.old + * lcd4linux.conf.sample with new layout + * new plugins 'loadavg' and 'meminfo' + * text widget have pre- and postfix + * * Revision 1.2 2004/01/14 11:33:00 reinelt * new plugin 'uname' which does what it's called * text widget nearly finished @@ -86,7 +92,7 @@ static void my_cpuinfo (RESULT *result, RESULT *arg1) // strip leading blanks from key while (isspace(*key)) *key++='\0'; // strip trailing blanks from key - while (isspace(*--c)) *c='\0'; + do *c='\0'; while (isspace(*--c)); // strip leading blanks from value while (isspace(*val)) *val++='\0'; // strip trailing blanks from value |