lib/storage: typo fix after 32d48f8dfbb03174858c00bdfe6d9d22431dc8d8

This commit is contained in:
Aliaksandr Valialkin 2022-11-07 13:57:56 +02:00
parent 116811d761
commit f9dc3da9e2
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -897,8 +897,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
}