Module: kamailio
Branch: master
Commit: e1dcdf5a48cae9802c51c1d516d6fbc862855dcb
URL:
https://github.com/kamailio/kamailio/commit/e1dcdf5a48cae9802c51c1d516d6fbc…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2015-06-08T15:45:28+02:00
lib/srdb1: use 6 digits for db_double2str
acc module was getting values rounded by this
---
Modified: lib/srdb1/db_ut.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e1dcdf5a48cae9802c51c1d516d6fbc…
Patch:
https://github.com/kamailio/kamailio/commit/e1dcdf5a48cae9802c51c1d516d6fbc…
---
diff --git a/lib/srdb1/db_ut.c b/lib/srdb1/db_ut.c
index 6ed8c16..091c2e9 100644
--- a/lib/srdb1/db_ut.c
+++ b/lib/srdb1/db_ut.c
@@ -193,7 +193,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;