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