Ad Widget

Collapse

Error in eval function "diff"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • knarfS
    Junior Member
    • Apr 2007
    • 4

    #1

    Error in eval function "diff"

    Hi Alexei.

    I discovered an error in the function "evaluate_function" in the file "evalfunc.c" from zabbix_server 1.3.4. This error is also mentioned hier.

    The return value of the "diff" functions with integer values (lines 1050-1059) is wrong. It should be like this:
    Code:
    case ITEM_VALUE_TYPE_UINT64:
        if(item->lastvalue_uint64 == item->prevvalue_uint64)
        {
            strcpy(value,"0");
        }
        else
        {
            strcpy(value,"1");
        }
        break;
    Hth,
    Frank
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for reporting this. Fixed.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...