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:
Simon Howard 2016-01-21 05:10:02 +00:00
parent 87b5ff04ba
commit a7f9439578

View file

@ -94,7 +94,7 @@ class Server:
self.refresh_time = time() self.refresh_time = time()
def age(self): def age(self):
return time() - self.add_time return int(time() - self.add_time)
def set_metadata(self, metadata): def set_metadata(self, metadata):
self.metadata_time = time() self.metadata_time = time()