From a365e90c1d29c5fc74873be94756faa086e734f7 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Sun, 27 Apr 2014 00:41:34 +0300 Subject: [PATCH] switched to peterh liner and fixed commands --- cmd/cgr-console/cgr-console.go | 2 +- cmd/cgr-loader/cgr-loader.go | 1 + cmd/cgr-tester/cgr-tester.go | 16 ++++++++-------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/cmd/cgr-console/cgr-console.go b/cmd/cgr-console/cgr-console.go index 17c1bdfe0..85a2380f5 100644 --- a/cmd/cgr-console/cgr-console.go +++ b/cmd/cgr-console/cgr-console.go @@ -31,7 +31,7 @@ import ( "github.com/cgrates/cgrates/console" "github.com/cgrates/cgrates/utils" - "github.com/rif/liner" + "github.com/peterh/liner" ) var ( diff --git a/cmd/cgr-loader/cgr-loader.go b/cmd/cgr-loader/cgr-loader.go index bc6fc95cd..dfaa5f87e 100644 --- a/cmd/cgr-loader/cgr-loader.go +++ b/cmd/cgr-loader/cgr-loader.go @@ -137,6 +137,7 @@ func main() { path.Join(*dataPath, utils.RATING_PLANS_CSV), path.Join(*dataPath, utils.RATING_PROFILES_CSV), path.Join(*dataPath, utils.SHARED_GROUPS_CSV), + path.Join(*dataPath, utils.LCRS_CSV), path.Join(*dataPath, utils.ACTIONS_CSV), path.Join(*dataPath, utils.ACTION_PLANS_CSV), path.Join(*dataPath, utils.ACTION_TRIGGERS_CSV), diff --git a/cmd/cgr-tester/cgr-tester.go b/cmd/cgr-tester/cgr-tester.go index e659d33c8..37fdddfdb 100644 --- a/cmd/cgr-tester/cgr-tester.go +++ b/cmd/cgr-tester/cgr-tester.go @@ -150,14 +150,14 @@ func main() { defer pprof.StopCPUProfile() } cd := &engine.CallDescriptor{ - TimeStart: time.Date(2014, time.December, 11, 55, 30, 0, 0, time.UTC), - TimeEnd: time.Date(2014, time.December, 11, 55, 31, 0, 0, time.UTC), - CallDuration: 60 * time.Second, - Direction: "*out", - TOR: *tor, - Tenant: *tenant, - Subject: *subject, - Destination: *destination, + TimeStart: time.Date(2014, time.December, 11, 55, 30, 0, 0, time.UTC), + TimeEnd: time.Date(2014, time.December, 11, 55, 31, 0, 0, time.UTC), + DurationIndex: 60 * time.Second, + Direction: "*out", + TOR: *tor, + Tenant: *tenant, + Subject: *subject, + Destination: *destination, } var duration time.Duration var err error