mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user