Skip to content

Commit

Permalink
Container Seconds should not be Container Nanoseconds (#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbellamy authored and tomwilkie committed Mar 22, 2017
1 parent 118280a commit 9228f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/multitenant/billing_emitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9228f7a

Please sign in to comment.