Commit 7d8a0fba authored by szh's avatar szh

update minetime

parent 182c503f
...@@ -26,7 +26,7 @@ func (s *RaspMinerStat) SetMineTime(addr string,flag string) error { ...@@ -26,7 +26,7 @@ func (s *RaspMinerStat) SetMineTime(addr string,flag string) error {
m["miner_start_time"] = time.Now().Unix() m["miner_start_time"] = time.Now().Unix()
} }
if flag == "end" { if flag == "end" {
m["miner_start_time"] = time.Now().Unix() m["miner_end_time"] = time.Now().Unix()
} }
return models.EditAddr(addr,m) return models.EditAddr(addr,m)
......
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