Specify Never
This commit is contained in:
parent
84566fc9ff
commit
bcdc5a9238
@ -99,7 +99,7 @@ def main() -> int:
|
|||||||
|
|
||||||
# Get the time of the last handshake
|
# Get the time of the last handshake
|
||||||
last_handshake = datetime.fromtimestamp(int(values[4]))
|
last_handshake = datetime.fromtimestamp(int(values[4]))
|
||||||
time_ago = timeago.format(last_handshake, datetime.now())
|
time_ago = timeago.format(last_handshake, datetime.now()) if values[4] != "0" else "Never"
|
||||||
|
|
||||||
# Print the client's name and the time of the last handshake
|
# Print the client's name and the time of the last handshake
|
||||||
print(f"{name}: {time_ago}")
|
print(f"{name}: {time_ago}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user