blob: b1e97923ff861de551126e070f0a6acb236d1743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
(box :class "panel"
:orientation "v"
:spacing 8
:space-evenly true
:height {100+16}
:width {(100+8)*3+8}
(graph
:value {net.rx}
:thickness 2
:time-range "30s"
:min 0
:max 100
:dynamic true
:line-style "round"
)
{"Download: " + round(net.rx/1024/1024, 2) + " MiB/s (peak: " + round(net.rx_peak/1024/1024, 2) + " MiB/s)"}
(graph
:value {net.tx}
:thickness 2
:time-range "30s"
:min 0
:max 100
:dynamic true
:line-style "round"
)
{"Upload: " + round(net.tx/1024/1024, 2) + " MiB/s (peak: " + round(net.tx_peak/1024/1024, 2) + " MiB/s)"}
)
(deflisten net
`/home/c/net.sh`
)
|