[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
This commit is contained in:
reinelt
2004-01-15 04:29:45 +00:00
parent 504656e948
commit a94ba7634d
10 changed files with 711 additions and 327 deletions

View File

@@ -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