stats: Forgot to initialize ByDay map
This commit is contained in:
parent
e04e45c969
commit
201f0ba232
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ func loadStats() {
|
|||
}
|
||||
|
||||
// Load day counters
|
||||
stats.ByDay = make(map[string]uint64)
|
||||
b, err = tx.CreateBucketIfNotExists([]byte("date"))
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Reference in a new issue