From be7822ae1c0d3dd37cb371ec030defef0cb739ba Mon Sep 17 00:00:00 2001 From: reinelt Date: Sun, 18 Jan 2004 06:54:08 +0000 Subject: [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 --- expr.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'expr.c') 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; -- cgit v1.2.3