Panel space is valuable!

This commit is contained in:
Tobias Schmidl 2020-09-21 08:10:31 +02:00
parent a95fc1ace0
commit 9bfa8f62fc

View file

@ -94,8 +94,7 @@ def httping(targets: List[str]) -> Tuple[Dict[str, Optional[float]], Optional[fl
if __name__ == "__main__": if __name__ == "__main__":
responses, median, stddev = httping(TARGETS) responses, median, stddev = httping(TARGETS)
if isinstance(median, float) and median != MAX_PING_IN_MS: if isinstance(median, float) and median != MAX_PING_IN_MS:
print("⦿ " + str(round(median, 2)) + "±" + str(round(stddev, 2)) + " | color=" + print("⦿ | color=" + CURRENT_THEME.colorize(median)) # type: ignore
CURRENT_THEME.colorize(median)) # type: ignore
else: else:
print("☠ | color=" + CURRENT_THEME.selected_colors[0]) print("☠ | color=" + CURRENT_THEME.selected_colors[0])
print("---") print("---")
@ -105,3 +104,6 @@ if __name__ == "__main__":
CURRENT_THEME.colorize(current_response)) CURRENT_THEME.colorize(current_response))
else: else:
print(current_host + ": ☠ | color=" + CURRENT_THEME.selected_colors[0]) print(current_host + ": ☠ | color=" + CURRENT_THEME.selected_colors[0])
print("---")
print("Average: " + str(round(median, 2)) + "±" + str(round(stddev, 2)) + " | color=" +
CURRENT_THEME.colorize(median))