From 42c49c37ff034d29a15606c3f256fc83cd13483a Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 14 May 2024 22:34:45 +0200 Subject: [PATCH] wip --- lib/logstorage/stats_max.go | 2 +- lib/logstorage/stats_min.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logstorage/stats_max.go b/lib/logstorage/stats_max.go index 62e215d5f..1c1f7dbf5 100644 --- a/lib/logstorage/stats_max.go +++ b/lib/logstorage/stats_max.go @@ -86,7 +86,7 @@ func (smp *statsMaxProcessor) mergeState(sfp statsProcessor) { } func (smp *statsMaxProcessor) finalizeStats() string { - return strconv.FormatFloat(smp.max, 'g', -1, 64) + return strconv.FormatFloat(smp.max, 'f', -1, 64) } func parseStatsMax(lex *lexer) (*statsMax, error) { diff --git a/lib/logstorage/stats_min.go b/lib/logstorage/stats_min.go index bf157cb20..5dcf1dd97 100644 --- a/lib/logstorage/stats_min.go +++ b/lib/logstorage/stats_min.go @@ -86,7 +86,7 @@ func (smp *statsMinProcessor) mergeState(sfp statsProcessor) { } func (smp *statsMinProcessor) finalizeStats() string { - return strconv.FormatFloat(smp.min, 'g', -1, 64) + return strconv.FormatFloat(smp.min, 'f', -1, 64) } func parseStatsMin(lex *lexer) (*statsMin, error) {