mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
[lcd4linux @ 2004-01-16 11:12:26 by reinelt]
some bugs in plugin_xmms fixed, parsing moved to own function plugin_proc_stat nearly finished git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@317 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
+6
-2
@@ -1,4 +1,4 @@
|
||||
/* $Id: plugin_cpuinfo.c,v 1.4 2004/01/16 07:26:25 reinelt Exp $
|
||||
/* $Id: plugin_cpuinfo.c,v 1.5 2004/01/16 11:12:26 reinelt Exp $
|
||||
*
|
||||
* plugin for /proc/cpuinfo parsing
|
||||
*
|
||||
@@ -23,6 +23,10 @@
|
||||
*
|
||||
*
|
||||
* $Log: plugin_cpuinfo.c,v $
|
||||
* Revision 1.5 2004/01/16 11:12:26 reinelt
|
||||
* some bugs in plugin_xmms fixed, parsing moved to own function
|
||||
* plugin_proc_stat nearly finished
|
||||
*
|
||||
* Revision 1.4 2004/01/16 07:26:25 reinelt
|
||||
* moved various /proc parsing to own functions
|
||||
* made some progress with /proc/stat parsing
|
||||
@@ -100,7 +104,7 @@ static int parse_cpuinfo (void)
|
||||
// strip trailing blanks from value
|
||||
for (c=val; *c!='\0';c++);
|
||||
while (isspace(*--c)) *c='\0';
|
||||
|
||||
|
||||
// add entry to hash table
|
||||
hash_set (&CPUinfo, key, val);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user