master
parent
5c3341e260
commit
0a91fc656d
|
|
@ -217,12 +217,7 @@ func (v01 *V01) serveGMStatus(w io.Writer) {
|
|||
lag = (time.Duration(v.Meta.LastLag) * time.Millisecond).String()
|
||||
}
|
||||
|
||||
last := ""
|
||||
if v.Meta.LastTSMS > 0 {
|
||||
last = fmt.Sprintf("no activity for %s", time.Since(time.Unix(0, v.Meta.LastTSMS*int64(time.Millisecond))))
|
||||
}
|
||||
|
||||
users[k] = fmt.Sprintf("%s %s %s", player, lag, last)
|
||||
users[k] = fmt.Sprintf("%s %s", player, lag)
|
||||
}
|
||||
yaml.NewEncoder(w).Encode(map[string]interface{}{
|
||||
"Players": len(v01.cfg.Players),
|
||||
|
|
|
|||
Loading…
Reference in New Issue