Improved coding style
This commit is contained in:
parent
eb8ff40d7b
commit
1d0521c0bb
@ -18,13 +18,10 @@ func main() {
|
||||
ticker := time.NewTicker(time.Second)
|
||||
|
||||
go func() {
|
||||
for {
|
||||
select {
|
||||
case <-ticker.C:
|
||||
for range ticker.C {
|
||||
fmt.Printf("%d packets per second, %d clients\n", server.PacketCount(), game.Clients.Count())
|
||||
server.ResetPacketCount()
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
// Start listening
|
||||
|
Loading…
Reference in New Issue
Block a user