mirror of
https://github.com/rpfilomeno/crystalwire.git
synced 2025-06-01 00:50:03 +00:00
fix issues #3
This commit is contained in:
parent
e5180b9d7b
commit
bcfac8a3ba
@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user