summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-05-19 16:12:54 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-05-19 16:12:54 +0000
commitc4e5acb16f8f4dfedad7090680f46e58b998f630 (patch)
tree79c1d0c7ca23bf99de73a02a374f5381bd9ab42f /include
parent0405c7864880d5969be4f3ed90d77ca18eb98dc1 (diff)
- removed option -Wall from all Makefiles (Alexei)
- removed "//" comments from Zabbix code (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@378 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r--include/functions.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/functions.c b/include/functions.c
index c51defe6..162de973 100644
--- a/include/functions.c
+++ b/include/functions.c
@@ -182,12 +182,10 @@ int evaluate_FUNCTION(char *value,DB_ITEM *item,char *function,int parameter)
{
if(cmp_double(item->lastvalue, item->prevvalue) == 0)
{
-// *value=strdup("0");
strcpy(value,"0");
}
else
{
-// *value=strdup("1");
strcpy(value,"1");
}
}
@@ -872,7 +870,6 @@ void process_new_value(DB_ITEM *item,char *value)
DBexecute(sql);
}
-// if((item->prevvalue_null == 1) || (cmp_double(value_double,item->lastvalue) != 0) || (cmp_double(item->prevvalue,item->lastvalue) != 0) )
if((item->prevvalue_null == 1) || (strcmp(value,item->lastvalue_str) != 0) || (strcmp(item->prevvalue_str,item->lastvalue_str) != 0) )
{
sprintf(sql,"update items set nextcheck=%d,prevvalue=lastvalue,lastvalue='%s',lastclock=%d where itemid=%d",now+item->delay,value,now,item->itemid);