stats: Forgot to initialize ByDay map

This commit is contained in:
Hamcha 2016-02-13 21:59:39 +01:00
parent e04e45c969
commit 201f0ba232
1 changed files with 1 additions and 0 deletions

View File

@ -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