update map eco/stats
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
_ "embed"
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/tidwall/pretty"
|
||||
@@ -57,6 +56,7 @@ func (c *Config) Init() error {
|
||||
err := json.Unmarshal(cfgSample, &c)
|
||||
c.Clients = make(map[int]*ClientConfig)
|
||||
c.Stats = make(map[uint8]map[string]*Stat)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -80,8 +80,6 @@ func (c *Config) Load(path string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Printf("Stats : %d", len(c.Stats))
|
||||
|
||||
return c.Save(path)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user