From be78950011c419d1cbfc7de417534d2238479e63 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 7 Nov 2022 13:57:56 +0200 Subject: [PATCH] lib/storage: typo fix after 32d48f8dfbb03174858c00bdfe6d9d22431dc8d8 --- lib/storage/storage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/storage/storage.go b/lib/storage/storage.go index b57737d619..f059071695 100644 --- a/lib/storage/storage.go +++ b/lib/storage/storage.go @@ -910,8 +910,8 @@ func (s *Storage) mustLoadHourMetricIDs(hour uint64, name string) *hourMetricIDs logger.Panicf("FATAL: cannot read %s: %s", path, err) } srcOrigLen := len(src) - if len(src) < 24 { - logger.Errorf("discarding %s, since it has broken header; got %d bytes; want %d bytes", path, len(src), 24) + if len(src) < 16 { + logger.Errorf("discarding %s, since it has broken header; got %d bytes; want %d bytes", path, len(src), 16) return hm }