aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_proc_stat.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-26 09:27:21 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-26 09:27:21 +0000
commit1338a264d57ad5f74ce6f8283966020a8e978d2e (patch)
treeb14a2a596dd615ae17880b7007d6b2b78191af94 /plugin_proc_stat.c
parent55abb63f11967a147d26e4654cbbd7ab3f01a558 (diff)
downloadlcd4linux-1338a264d57ad5f74ce6f8283966020a8e978d2e.tar.gz
[lcd4linux @ 2004-06-26 09:27:20 by reinelt]
added '-W' to CFLAGS changed all C++ comments to C ones ('//' => '/* */') cleaned up a lot of signed/unsigned mistakes git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@480 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_proc_stat.c')
-rw-r--r--plugin_proc_stat.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/plugin_proc_stat.c b/plugin_proc_stat.c
index b55c22b..aac22eb 100644
--- a/plugin_proc_stat.c
+++ b/plugin_proc_stat.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_proc_stat.c,v 1.21 2004/06/20 10:09:56 reinelt Exp $
+/* $Id: plugin_proc_stat.c,v 1.22 2004/06/26 09:27:21 reinelt Exp $
*
* plugin for /proc/stat parsing
*
@@ -23,6 +23,12 @@
*
*
* $Log: plugin_proc_stat.c,v $
+ * Revision 1.22 2004/06/26 09:27:21 reinelt
+ *
+ * added '-W' to CFLAGS
+ * changed all C++ comments to C ones ('//' => '/* */')
+ * cleaned up a lot of signed/unsigned mistakes
+ *
* Revision 1.21 2004/06/20 10:09:56 reinelt
*
* 'const'ified the whole source
@@ -163,7 +169,7 @@ static int parse_proc_stat (void)
{
int age;
- // reread every 10 msec only
+ /* reread every 10 msec only */
age=hash_age(&Stat, NULL);
if (age>0 && age<=10) return 0;
@@ -187,7 +193,7 @@ static int parse_proc_stat (void)
cpu=buffer;
- // skip "cpu" or "cpu0" block
+ /* skip "cpu" or "cpu0" block */
if ((end=strpbrk(buffer, delim))!=NULL) *end='\0';
beg=end?end+1:NULL;