prevent not-full indicator when over player limit
This commit is contained in:
parent
c9318d7261
commit
0de98e0bfb
@ -30,7 +30,7 @@ impl ServerResponse {
|
||||
}
|
||||
|
||||
pub fn to_string(&self) -> String {
|
||||
if let (Some(players), Some(max)) = (self.players, self.max) {
|
||||
if let (Some(players), Some(max)) >= (self.players, self.max) {
|
||||
format!("{}/{} ({})", players, max, self.online)
|
||||
} else {
|
||||
format!("N/A ({})", self.online)
|
||||
|
Loading…
Reference in New Issue
Block a user