diff --git a/derohe-proxy.go b/derohe-proxy.go index 7ec6d73..bdf324f 100644 --- a/derohe-proxy.go +++ b/derohe-proxy.go @@ -50,14 +50,8 @@ func main() { } go proxy.Start_client(daemon_address, proxy.Address) - var current_time time.Time - last_time := time.Now() - //fmt.Printf("%4d miners connected\t\tBlocks:%4d\tMiniblocks:%4d\tRejected:%4d\n", proxy.CountMiners(), proxy.Blocks, proxy.Minis, proxy.Rejected) for { - current_time = time.Now() - if current_time.Sub(last_time) >= time.Minute { - fmt.Printf("%4d miners connected\t\tBlocks:%4d\tMiniblocks:%4d\tRejected:%4d\n", proxy.CountMiners(), proxy.Blocks, proxy.Minis, proxy.Rejected) - last_time = time.Now() - } + time.Sleep(time.Minute) + fmt.Printf("%4d miners connected\t\tBlocks:%4d\tMiniblocks:%4d\tRejected:%4d\n", proxy.CountMiners(), proxy.Blocks, proxy.Minis, proxy.Rejected) } }