diff --git a/.github/test_udp.py b/.github/test_udp.py index 2ad6cb4..d179e35 100644 --- a/.github/test_udp.py +++ b/.github/test_udp.py @@ -5,7 +5,7 @@ from time import perf_counter import pandas as pd -import plotext as plt +import plotille # Configuration options PACKETS_TO_SEND = 1000 @@ -53,10 +53,8 @@ def main(): f"\r{i}/{PACKETS_TO_SEND} packets sent (failures: {failures})", flush=True, end="" ) - print() - - plt.hist(rtt, bins=10) - plt.show() + print("\r", end="") + print(plotille.hist(rtt, bins=10)) print(f"{failures} failures") print(pd.Series(rtt).describe()) diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index ffe52ab..3581c2c 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -14,5 +14,5 @@ jobs: - run: | python3 -V - python3 -m pip install pandas plotext + python3 -m pip install pandas plotille python3 .github/test_udp.py udpquiz.com