started new cgr-rates command

This commit is contained in:
Radu Ioan Fericean
2012-07-19 17:41:25 +03:00
parent cbf370288d
commit 12c60ce557
4 changed files with 4 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ func CallMethod(key *timespans.CallDescriptor, method string) (reply float64, er
return
}
func main() {
func maind() {
flag.Parse()
runtime.GOMAXPROCS(runtime.NumCPU() - 1)
bal = balancer.NewBalancer()

View File

@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
package main
import (
"code.google.com/p/goconf/conf"
"flag"
"fmt"
"github.com/cgrates/cgrates/sessionmanager"
@@ -128,7 +127,7 @@ func (s *Responder) Shutdown(args string, reply *string) (err error) {
return nil
}
func main() {
func maina() {
flag.Parse()
//getter, err := timespans.NewKyotoStorage("storage.kch")
getter, err := timespans.NewRedisStorage(*redissrv, *redisdb)

View File

@@ -105,7 +105,7 @@ func loadActionTimings() {
sort.Sort(s.queue)
}
func main() {
func mainb() {
flag.Parse()
var err error
storage, err = timespans.NewRedisStorage(*redisserver, *redisdb)

View File

@@ -37,7 +37,7 @@ var (
redisdb = flag.Int("redisdb", 10, "redis database number")
)
func main() {
func mainc() {
flag.Parse()
sm := &sessionmanager.FSSessionManager{}
getter, err := timespans.NewRedisStorage(*redissrv, *redisdb)