X-Git-Url: https://git.rkrishnan.org/?a=blobdiff_plain;f=src%2Fallmydata%2Fstorage_client.py;h=12eaca2c4c2c7f6bf721bc63e4a0fd350d98d3dd;hb=486dbfc7bd3c0bbba42a6df8e4564601120aec0e;hp=e532db1a68d8658d60d06cd347c25f90ba6b2fa0;hpb=c0a2af5d69bbf63d244f3f17ab80f0e16de0fe0d;p=tahoe-lafs%2Ftahoe-lafs.git diff --git a/src/allmydata/storage_client.py b/src/allmydata/storage_client.py index e532db1a..12eaca2c 100644 --- a/src/allmydata/storage_client.py +++ b/src/allmydata/storage_client.py @@ -164,7 +164,6 @@ class NativeStorageServer: the their version information. I remember information about when we were last connected too, even if we aren't currently connected. - @ivar announcement_time: when we first heard about this service @ivar last_connect_time: when we last established a connection @ivar last_loss_time: when we last lost a connection @@ -212,7 +211,6 @@ class NativeStorageServer: self._long_description = tubid_s self._short_description = tubid_s[:6] - self.announcement_time = time.time() self.last_connect_time = None self.last_loss_time = None self.remote_host = None @@ -263,8 +261,11 @@ class NativeStorageServer: return self.last_connect_time def get_last_loss_time(self): return self.last_loss_time - def get_announcement_time(self): - return self.announcement_time + def get_last_received_data_time(self): + if self.rref is None: + return None + else: + return self.rref.getDataLastReceivedAt() def get_available_space(self): version = self.get_version()