diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/iotop.py | 2 | ||||
-rw-r--r-- | examples/process_detail.py | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/examples/iotop.py b/examples/iotop.py index eedb7f9f..80ca9735 100644 --- a/examples/iotop.py +++ b/examples/iotop.py @@ -126,7 +126,6 @@ def refresh_window(procs, disks_read, disks_write): """Print results on screen by using curses.""" curses.endwin() templ = "%-5s %-7s %11s %11s %s" - interval = 0 win.erase() disks_tot = "Total DISK READ: %s | Total DISK WRITE: %s" \ @@ -147,7 +146,6 @@ def refresh_window(procs, disks_read, disks_write): except curses.error: break win.refresh() - interval = 1 def main(): try: diff --git a/examples/process_detail.py b/examples/process_detail.py index e58cf1d9..afec3ca0 100644 --- a/examples/process_detail.py +++ b/examples/process_detail.py @@ -16,7 +16,6 @@ import socket import sys import psutil -from psutil._compat import namedtuple def convert_bytes(n): |