Commit 8614f529 authored by Mario Hock's avatar Mario Hock

Show logging comment in curses UI

parent f4d22e0f
......@@ -236,6 +236,15 @@ def display(measurement):
stdscr.addstr(y, LABEL_Received, 'Received:', curses.color_pair(2))
stdscr.addstr(y, LABEL_Received+10, '{0} {1}/s'.format(_format_net_speed(sum_receiving),unit), curses.color_pair(3))
## Show logging comment
comment = logging_manager.get_logging_comment()
if ( comment ):
y += 3
stdscr.addstr(y, 3, 'Comment: ', curses.A_BOLD)
stdscr.addstr(y, 3+9, comment)
stdscr.refresh()
return True
......
......@@ -461,6 +461,10 @@ class LoggingManager:
return "Standby"
def get_logging_comment(self):
return self.auto_comment if self.auto_comment else self.comment
def close(self):
if ( self.measurement_logger ):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment