fix issues #3

This commit is contained in:
Roger Filomeno 2025-04-01 18:03:27 +08:00
parent e5180b9d7b
commit bcfac8a3ba
2 changed files with 5 additions and 3 deletions

View File

@ -132,7 +132,7 @@ def print_pid2traffic():
pass
# make another copy of the dataframe just for fancy printing
printing_df = df.copy()
printing_df = printing_df.head(15)
printing_df = printing_df.head(10)
try:
# apply the function get_size to scale the stats like '532.6KB/s', etc.
@ -188,7 +188,7 @@ def stat(df: pd.DataFrame):
def plot(df: pd.DataFrame):
colors = ["cyan","yellow","magenta"]
fig = plotille.Figure()
fig.width=50
fig.width=70
fig.height=6
fig.origin=False
fig.x_label="time"
@ -196,6 +196,8 @@ def plot(df: pd.DataFrame):
fig.set_x_limits(min_=0, max_=60)
fig.set_y_limits(min_=0, max_=None)

View File

@ -1,7 +1,7 @@
[project]
name = "crystalwire"
version = "0.1.0"
description = "Monitor bandwidth usage, per process!
description = "Monitor bandwidth usage, per process!"
readme = "README.md"
requires-python = ">=3.11"
dependencies = []