mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-06 01:08:03 +00:00
Container Seconds should not be Container Nanoseconds (#2372)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user