corrected compilation error

This commit is contained in:
Radu Ioan Fericean
2012-08-15 17:21:34 +03:00
parent ba3e45cdd3
commit 54657bf272
2 changed files with 10 additions and 1 deletions

View File

@@ -287,7 +287,11 @@ func (at *ActionTiming) store() (result string) {
result += ubi + ","
}
result = strings.TrimRight(result, ",") + "|"
result += at.Timing.store() + "|"
if at.Timing != nil {
result += at.Timing.store() + "|"
} else {
result += " |"
}
result += strconv.FormatFloat(at.Weight, 'f', -1, 64) + "|"
result += at.ActionsId
return

View File

@@ -100,3 +100,8 @@ func (psl *PostgresStorage) GetCallCostLog(uuid string) (cc *CallCost, err error
err = json.Unmarshal([]byte(timespansJson), cc.Timespans)
return
}
func (psl *PostgresStorage) LogActionTrigger(ubId string, at *ActionTrigger, as []*Action) (err error) {
return
}
func (psl *PostgresStorage) LogActionTiming(at *ActionTiming, as []*Action) (err error) { return }