mirror of
https://github.com/chocolate-doom/master-server.git
synced 2024-11-28 15:11:53 +00:00
Report server age as integer.
This reduces the metadata response size slightly as we no longer need to return a number of decimal points.
This commit is contained in:
parent
87b5ff04ba
commit
a7f9439578
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class Server:
|
|||
self.refresh_time = time()
|
||||
|
||||
def age(self):
|
||||
return time() - self.add_time
|
||||
return int(time() - self.add_time)
|
||||
|
||||
def set_metadata(self, metadata):
|
||||
self.metadata_time = time()
|
||||
|
|
Loading…
Reference in a new issue