Commit 182c503f authored by szh's avatar szh

add return

parent 19448dae
......@@ -21,7 +21,7 @@ func (s *RaspMinerStat) SetMineTime(addr string,flag string) error {
if err != nil {
return err
}
m := map[string]interface{}{"miner_start_time":0,"miner_end_time":0}
m := map[string]interface{}{}
if flag == "start" {
m["miner_start_time"] = time.Now().Unix()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment