Skip to content

Commit

Permalink
statistics: only raise warning when setting stat with smth != 0
Browse files Browse the repository at this point in the history
(cherry picked from commit c1b0c80)
  • Loading branch information
razvancrainea committed Nov 24, 2016
1 parent 2e782e6 commit 5d26265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/statistics/statistics.c
Expand Up @@ -438,7 +438,7 @@ int pv_set_stat(struct sip_msg* msg, pv_param_t *param, int op,
return -1;
}

if (val != 0)
if (val->ri != 0)
LM_WARN("non-zero value - setting value to 0\n");

reset_stat( stat );
Expand Down

0 comments on commit 5d26265

Please sign in to comment.