Container Seconds should not be Container Nanoseconds (#2372)

This commit is contained in:
Paul Bellamy
2017-03-22 17:34:46 +00:00
committed by Tom Wilkie
parent 118280a2a8
commit 9228f7a7fa

View File

@@ -58,7 +58,7 @@ func (e *BillingEmitter) Add(ctx context.Context, rep report.Report, buf []byte)
hasher := sha256.New()
hasher.Write(buf)
hash := "sha256:" + base64.URLEncoding.EncodeToString(hasher.Sum(nil))
amounts := billing.Amounts{billing.ContainerSeconds: int64(interval) * containerCount}
amounts := billing.Amounts{billing.ContainerSeconds: int64(interval/time.Second) * containerCount}
metadata := map[string]string{
"row_key": rowKey,
"col_key": colKey,