From: oetiker Date: Tue, 25 May 2004 16:51:49 +0000 (+0000) Subject: The expression's head was first checking for LT, and then for LTIME, X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dc6d748bae0dababfc1afa90226f6c4ca3d69982;p=rrdtool-all.git The expression's head was first checking for LT, and then for LTIME, and the latter was never reached. -- Stanislav Sinyagin git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@258 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_rpncalc.c b/program/src/rrd_rpncalc.c index 52d7a118..94796d18 100644 --- a/program/src/rrd_rpncalc.c +++ b/program/src/rrd_rpncalc.c @@ -300,6 +300,7 @@ rpn_parse(void *key_hash,char *expr,long (*lookup)(void *,char*)){ match_op(OP_DUP,DUP) match_op(OP_EXC,EXC) match_op(OP_POP,POP) + match_op(OP_LTIME,LTIME) match_op(OP_LT,LT) match_op(OP_LE,LE) match_op(OP_GT,GT) @@ -320,7 +321,6 @@ rpn_parse(void *key_hash,char *expr,long (*lookup)(void *,char*)){ match_op(OP_INF,INF) match_op(OP_ISINF,ISINF) match_op(OP_NOW,NOW) - match_op(OP_LTIME,LTIME) match_op(OP_TIME,TIME) match_op(OP_ATAN,ATAN)