Go fmt on sources

This commit is contained in:
DanB
2013-04-08 17:55:09 +02:00
parent 5c05422f01
commit f036bd839c
3 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# Rating system designed to be used in VoIP Carriers World #
# Rating system for Telecom & ISP environments #
## Features ##
+ Rates for prepaid and for postpaid
@@ -18,6 +18,6 @@ PDF, Epub, Manpage http://readthedocs.org/projects/cgrates/downloads/
API reference http://gopkgdoc.appspot.com/pkg/github.com/cgrates/cgrates
Also check irc.freenode.net#cgrates and [Google group](https://groups.google.com/forum/#!forum/cgrates) for live info.
Also check irc.freenode.net#cgrates and [Google group](https://groups.google.com/forum/#!forum/cgrates) for a more real-time support.
Continous integration: [![Build Status](https://goci.herokuapp.com/project/image/github.com/cgrates/cgrates "Continous integration")](http://goci.me/project/github.com/cgrates/cgrates) [![Build Status](https://secure.travis-ci.org/cgrates/cgrates.png)](http://travis-ci.org/cgrates/cgrates)

View File

@@ -253,7 +253,7 @@ func (csvr *CSVReader) LoadRateTimings(fn string, comma rune) (err error) {
rt := NewRateTiming(record[1], t, record[3])
rs, exists := csvr.rates[record[1]]
if !exists {
return errors.New(fmt.Sprintf("Could not rate for tag %v", record[2]))
return errors.New(fmt.Sprintf("Could not find rate for tag %v", record[1]))
}
for _, r := range rs {
_, exists := csvr.activationPeriods[tag]

View File

@@ -211,6 +211,7 @@ func (sm *FSSessionManager) OnChannelHangupComplete(ev Event) {
Destination: ev.GetDestination(),
TimeStart: startTime,
TimeEnd: endTime,
FallbackSubject: ev.GetFallbackSubj()
}
cc := &rater.CallCost{}
err = sm.connector.Debit(cd, cc)
@@ -269,6 +270,7 @@ func (sm *FSSessionManager) OnChannelHangupComplete(ev Event) {
Account: lastCC.Account,
Destination: lastCC.Destination,
Amount: -cost,
FallbackSubject: lastCC.FallbackSubject
}
var response float64
err := sm.connector.DebitCents(*cd, &response)
@@ -285,6 +287,7 @@ func (sm *FSSessionManager) OnChannelHangupComplete(ev Event) {
Account: lastCC.Account,
Destination: lastCC.Destination,
Amount: -seconds,
FallbackSubject: lastCC.FallbackSubject
}
var response float64
err := sm.connector.DebitSeconds(*cd, &response)