aboutsummaryrefslogtreecommitdiffstats
path: root/expr.c
diff options
context:
space:
mode:
authorreinelt <>2004-01-18 06:54:08 +0000
committerreinelt <>2004-01-18 06:54:08 +0000
commit9fdad968332d4a70090cf813f0620e3c5d66a0ef (patch)
tree23ddd5db5bc45bbc05b514a1ae4bd53b94863572 /expr.c
parent78edc6d12b0f0017cf88d8dca930ee2c41f99948 (diff)
downloadlcd4linux-9fdad968332d4a70090cf813f0620e3c5d66a0ef.tar.gz
[lcd4linux @ 2004-01-18 06:54:08 by reinelt]
bug in expr.c fixed (thanks to Xavier) some progress with /proc/stat parsing
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/expr.c b/expr.c
index 09a6c33..f9e6102 100644
--- a/expr.c
+++ b/expr.c
@@ -1,4 +1,4 @@
-/* $Id: expr.c,v 1.4 2004/01/14 11:33:00 reinelt Exp $
+/* $Id: expr.c,v 1.5 2004/01/18 06:54:08 reinelt Exp $
*
* expr ('y*') functions
* This is only a workaround to make the Evaluator usable until
@@ -24,6 +24,10 @@
*
*
* $Log: expr.c,v $
+ * Revision 1.5 2004/01/18 06:54:08 reinelt
+ * bug in expr.c fixed (thanks to Xavier)
+ * some progress with /proc/stat parsing
+ *
* Revision 1.4 2004/01/14 11:33:00 reinelt
* new plugin 'uname' which does what it's called
* text widget nearly finished
@@ -67,7 +71,7 @@ int Expr(int index, char string[EXPR_TXT_LEN], double *val)
return -1;
sprintf(yn, "y%d", index);
- expression = cfg_get(NULL, yn, NULL);
+ expression = cfg_get_raw(NULL, yn, NULL);
if (!expression || !*expression) {
error("Empty expression for 'y%d'", index);
@@ -78,7 +82,7 @@ int Expr(int index, char string[EXPR_TXT_LEN], double *val)
Eval(expression, &result);
strcpy(string, R2S(&result));
- debug("%s: <%s> = '%s'",yn, expression, result);
+ debug("%s: <%s> = '%s'", yn, expression, string);
if (isdigit(*string)) {
double max, min;