From 8b7d08ebfc1b389c301300f6bad7368e85617921 Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Fri, 13 Sep 2019 12:55:01 +0300 Subject: [PATCH] - stats: fix crash on load --- stats/stats_unit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats/stats_unit.go b/stats/stats_unit.go index 5ac574a0..bfcc09b8 100644 --- a/stats/stats_unit.go +++ b/stats/stats_unit.go @@ -296,7 +296,7 @@ func deserialize(u *unit, udb *unitDB) { if n < len(u.nResult) { n = len(u.nResult) // n = min(len(udb.NResult), len(u.nResult)) } - for i := 1; i <= n; i++ { + for i := 1; i < n; i++ { u.nResult[i] = udb.NResult[i] }