parenthesis.

This commit is contained in:
Nan Monnand Deng 2014-09-06 15:03:12 -04:00
parent 719b9ead20
commit 74abe4c152

View File

@ -150,7 +150,7 @@ func (self *influxdbStorage) valuesToContainerStats(columns []string, values []i
switch {
case col == colTimestamp:
if f64sec, ok := v.(float64); ok && stats.Timestamp.IsZero() {
stats.Timestamp = time.Unix(int64(f64sec)/1E3, int64(f64sec)%1E3*1E6)
stats.Timestamp = time.Unix(int64(f64sec)/1E3, (int64(f64sec)%1E3)*1E6)
}
case col == colMachineName:
if m, ok := v.(string); ok {