We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b075cd9 commit 369b9f1Copy full SHA for 369b9f1
src/TerminalSystemMonitor.jl
@@ -1,29 +1,7 @@
1
module TerminalSystemMonitor
2
3
-#=
4
- CPU Usage
5
- ┌ ┐
6
- id: 0 ┤■■■■■■■■■■ 23
7
- id: 1 ┤ 0
8
- id: 2 ┤■■■■■ 11.1111
9
- id: 3 ┤ 0
10
- id: 4 ┤■■ 5.05051
11
- id: 5 ┤ 0
12
- id: 6 ┤■ 3
13
- id: 7 ┤ 0
14
- id: 8 ┤ 1
15
- id: 9 ┤ 0
16
- id: 10 ┤ 0
17
- id: 11 ┤ 0
18
- id: 12 ┤ 0
19
- id: 13 ┤ 0
20
- id: 14 ┤ 0
21
- id: 15 ┤ 0
22
- └ ┘
23
-=#
24
-
25
using UnicodePlots
26
-using Term
+using Term # this is required by UnicodePlots.panel
27
28
idle_time(info::Sys.CPUinfo) = Int64(info.cpu_times!idle)
29
@@ -97,7 +75,7 @@ function layout(x, y)
97
75
["Mem: "],
98
76
[memoryusage],
99
77
maximum = Sys.total_memory() / 2^20 / 1000,
100
- width = max(10, 40),
78
+ width = max(5, 15),
101
79
),
102
80
)
103
81
0 commit comments