summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-11-21 20:43:54 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-11-21 20:43:54 +0000
commit77a1bb41328efc55a394de86ebdedac4492ab536 (patch)
tree039081a3d540c52edca5c628e122bf7405e2073e /include
parent257cbef00a3771c36a041ad862fb9e2a102ddaf3 (diff)
- fix for custom multiplier (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1505 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r--include/functions.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/functions.c b/include/functions.c
index 4a838c09..ca464a79 100644
--- a/include/functions.c
+++ b/include/functions.c
@@ -2372,6 +2372,12 @@ void process_new_value(DB_ITEM *item,char *value)
zabbix_log( LOG_LEVEL_DEBUG, "In process_new_value()");
value_double=strtod(value,&e);
+ if( (item->value_type==ITEM_VALUE_TYPE_FLOAT) && (item->multiplier == ITEM_MULTIPLIER_USE))
+ {
+ multiplier = strtod(item->formula,&e);
+ value_double = value_double * multiplier;
+ }
+
if(item->history>0)
{
if(item->value_type==ITEM_VALUE_TYPE_FLOAT)