Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CPUnetLOG
CPUnetLOG
Commits
e5b9ef6a
Commit
e5b9ef6a
authored
Jul 30, 2014
by
Mario Hock
Browse files
Added simple load-"animation"
parent
71c64c14
Changes
1
Hide whitespace changes
Inline
Side-by-side
curses_display.py
View file @
e5b9ef6a
...
...
@@ -132,6 +132,13 @@ def display(measurement):
stdscr
.
addstr
(
y
,
50
,
'Received:'
,
curses
.
color_pair
(
2
))
stdscr
.
addstr
(
y
,
60
,
'{0} {1}/s ({2:.2%})'
.
format
(
receiving
,
unit
,
receive_ratio
),
curses
.
color_pair
(
3
))
## XXX TESTING
y
+=
1
stdscr
.
addstr
(
y
,
25
,
"|"
+
" "
*
20
+
"|"
,
curses
.
color_pair
(
2
))
stdscr
.
addstr
(
y
,
26
,
" "
*
int
(
send_ratio
*
20
),
curses
.
color_pair
(
3
)
|
curses
.
A_REVERSE
)
stdscr
.
addstr
(
y
,
59
,
"|"
+
" "
*
20
+
"|"
,
curses
.
color_pair
(
2
))
stdscr
.
addstr
(
y
,
60
,
" "
*
int
(
receive_ratio
*
20
),
curses
.
color_pair
(
3
)
|
curses
.
A_REVERSE
)
y
+=
1
## Total
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment