Skip to content

Commit

Permalink
lib/srdb1: use 6 digits for db_double2str
Browse files Browse the repository at this point in the history
acc module was getting values rounded by this

(cherry picked from commit e1dcdf5)
  • Loading branch information
linuxmaniac committed Jun 9, 2015
1 parent 61d84c0 commit a604871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/srdb1/db_ut.c
Expand Up @@ -195,7 +195,7 @@ inline int db_double2str(double _v, char* _s, int* _l)
return -1;
}

ret = snprintf(_s, *_l, "%-10.2f", _v);
ret = snprintf(_s, *_l, "%-10.6f", _v);
if (ret < 0 || ret >= *_l) {
LM_ERR("Error in snprintf\n");
return -1;
Expand Down

0 comments on commit a604871

Please sign in to comment.