From 5879c34819a3ca426e935a940853d83b177de72a Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Mon, 18 Nov 2019 14:46:12 -0800 Subject: [PATCH] update gofmt with go1.13 --- storage/elasticsearch/elasticsearch.go | 2 +- storage/redis/redis.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/elasticsearch/elasticsearch.go b/storage/elasticsearch/elasticsearch.go index 20014946..0c2b1e44 100644 --- a/storage/elasticsearch/elasticsearch.go +++ b/storage/elasticsearch/elasticsearch.go @@ -69,7 +69,7 @@ func new() (storage.StorageDriver, error) { func (self *elasticStorage) containerStatsAndDefaultValues( cInfo *info.ContainerInfo, stats *info.ContainerStats) *detailSpec { - timestamp := stats.Timestamp.UnixNano() / 1E3 + timestamp := stats.Timestamp.UnixNano() / 1e3 var containerName string if len(cInfo.ContainerReference.Aliases) > 0 { containerName = cInfo.ContainerReference.Aliases[0] diff --git a/storage/redis/redis.go b/storage/redis/redis.go index 4a8fc5df..d744abd9 100644 --- a/storage/redis/redis.go +++ b/storage/redis/redis.go @@ -66,7 +66,7 @@ func (self *redisStorage) defaultReadyToFlush() bool { // We must add some default params (for example: MachineName,ContainerName...)because containerStats do not include them func (self *redisStorage) containerStatsAndDefaultValues(cInfo *info.ContainerInfo, stats *info.ContainerStats) *detailSpec { - timestamp := stats.Timestamp.UnixNano() / 1E3 + timestamp := stats.Timestamp.UnixNano() / 1e3 var containerName string if len(cInfo.ContainerReference.Aliases) > 0 { containerName = cInfo.ContainerReference.Aliases[0]