From 362c6fa7c66ad46f46e847067657cf8970928c02 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Fri, 30 Oct 2015 12:34:30 +0200 Subject: [PATCH] global rounding default set to 5 --- config/config_defaults.go | 2 +- engine/calldesc.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config_defaults.go b/config/config_defaults.go index 59dbede2d..30032dd42 100644 --- a/config/config_defaults.go +++ b/config/config_defaults.go @@ -29,7 +29,7 @@ const CGRATES_CFG_JSON = ` "general": { "http_skip_tls_verify": false, // if enabled Http Client will accept any TLS certificate - "rounding_decimals": 10, // system level precision for floats + "rounding_decimals": 5, // system level precision for floats "dbdata_encoding": "msgpack", // encoding used to store object data in strings: "tpexport_dir": "/var/log/cgrates/tpe", // path towards export folder for offline Tariff Plans "http_failed_dir": "/var/log/cgrates/http_failed", // directory path where we store failed http requests diff --git a/engine/calldesc.go b/engine/calldesc.go index 4b93208cc..d0c4517ff 100644 --- a/engine/calldesc.go +++ b/engine/calldesc.go @@ -74,7 +74,7 @@ var ( storageLogger LogStorage cdrStorage CdrStorage debitPeriod = 10 * time.Second - globalRoundingDecimals = 10 + globalRoundingDecimals = 5 historyScribe history.Scribe pubSubServer PublisherSubscriber userService UserService @@ -83,7 +83,7 @@ var ( // Exported method to set the storage getter. func SetRatingStorage(sg RatingStorage) { - ratingStorage = sg + ratingStorage = sg } func SetAccountingStorage(ag AccountingStorage) {