Merge pull request #2339 from dashpole/go_fmt

Update gofmt with go1.13
This commit is contained in:
David Ashpole 2019-11-22 17:29:42 -08:00 committed by GitHub
commit c9261a8d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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]