Eclectic Media Git pingstats / f515824
Added a status bar Ariana Giroux 1 year, 9 months ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
7373 system('clear' if not name == 'nt' else 'cls')
7474 rows, columns = _get_tty_size()
7575 plot(y, num_x_chars=columns - 16, num_y_chars=rows - 3)
76 if y.count(-10) == 1:
77 print('1 packet dropped of %s'.center(columns) % len(y))
78 elif y.count(-10) > 1:
79 print('%s packets dropped of %s'.center(columns)
80 % (y.count(-10), len(y)))
81 else:
82 print('Displaying %s total packets from %s'.center(columns)
83 % (len(y), parsed.address))
7684 except KeyboardInterrupt:
7785 pass
7886