Loading ccserver/client.py +4 −0 Original line number Diff line number Diff line #!/usr/bin/env python #coding=utf8 from threading import RLock from datetime import datetime class CCClient(object): Loading @@ -25,6 +26,9 @@ class CCClient(object): # The date of connection of the client: self._connection_date = datetime.now() # Jobs lock for this client: self.lock = RLock() def get_uptime(self): ''' Get the uptime of the client connection in seconds. Loading Loading
ccserver/client.py +4 −0 Original line number Diff line number Diff line #!/usr/bin/env python #coding=utf8 from threading import RLock from datetime import datetime class CCClient(object): Loading @@ -25,6 +26,9 @@ class CCClient(object): # The date of connection of the client: self._connection_date = datetime.now() # Jobs lock for this client: self.lock = RLock() def get_uptime(self): ''' Get the uptime of the client connection in seconds. Loading