aboutsummaryrefslogtreecommitdiffstats
path: root/expr.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-01-18 06:54:08 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-01-18 06:54:08 +0000
commitbe7822ae1c0d3dd37cb371ec030defef0cb739ba (patch)
tree23ddd5db5bc45bbc05b514a1ae4bd53b94863572 /expr.c
parentd672d4d499f0df79bc371b0ca9ca4a7f44477311 (diff)
downloadlcd4linux-be7822ae1c0d3dd37cb371ec030defef0cb739ba.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 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@318 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
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;