stats: Forgot to initialize ByDay map

This commit is contained in:
Hamcha 2016-02-13 21:59:39 +01:00
parent e04e45c969
commit 201f0ba232

View file

@ -99,6 +99,7 @@ func loadStats() {
} }
// Load day counters // Load day counters
stats.ByDay = make(map[string]uint64)
b, err = tx.CreateBucketIfNotExists([]byte("date")) b, err = tx.CreateBucketIfNotExists([]byte("date"))
if err != nil { if err != nil {
return err return err