summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a433eda)
raw | patch | inline | side by side (parent: a433eda)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 10 Mar 2007 17:36:32 +0000 (17:36 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 10 Mar 2007 17:36:32 +0000 (17:36 +0000) |
program/src/rrd_update.c | patch | blob | history |
index cca6e52e331581ded088c5e24589970411ac999c..0143e9e68db29c9e5ccbf85812f96044ff89770d 100644 (file)
--- a/program/src/rrd_update.c
+++ b/program/src/rrd_update.c
case DST_DERIVE:
if(rrd.pdp_prep[i].last_ds[0] != 'U'){
for(ii=0;updvals[i+1][ii] != '\0';ii++){
- if(updvals[i+1][ii] < '0' || updvals[i+1][ii] > '9' || (ii==0 && updvals[i+1][ii] == '-')){
+ if((updvals[i+1][ii] < '0' || updvals[i+1][ii] > '9') && (ii != 0 && updvals[i+1][ii] != '-')){
rrd_set_error("not a simple integer: '%s'",updvals[i+1]);
break;
}