diff options
| author | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-02-27 03:58:25 +0100 |
|---|---|---|
| committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-02-27 03:58:25 +0100 |
| commit | 59d819720fde46e7afd6eb41aae05ef2bf9d96d6 (patch) | |
| tree | 08a162758a2d4921b5be849733de4b3221e04613 /examples | |
| parent | 3b8c231d9777e0193f3d0c5a7f764ae14943eb77 (diff) | |
| download | psutil-59d819720fde46e7afd6eb41aae05ef2bf9d96d6.tar.gz | |
update doc
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/pmap.py | 2 | ||||
| -rwxr-xr-x | examples/top.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/pmap.py b/examples/pmap.py index a9d03641..1936c0b2 100755 --- a/examples/pmap.py +++ b/examples/pmap.py @@ -38,7 +38,7 @@ from psutil._compat import print_ def main(): if len(sys.argv) != 2: - sys.exit('usage: pmap pid') + sys.exit('usage: pmap <pid>') p = psutil.Process(int(sys.argv[1])) print_("pid=%s, name=%s" % (p.pid, p.name())) templ = "%-16s %10s %-7s %s" diff --git a/examples/top.py b/examples/top.py index d720beb4..479c797e 100755 --- a/examples/top.py +++ b/examples/top.py @@ -20,6 +20,7 @@ $ python examples/top.py Load average: 0.34 0.54 0.46 Uptime: 3 days, 10:16:37 PID USER NI VIRT RES CPU% MEM% TIME+ NAME +------------------------------------------------------------ 989 giampaol 0 66M 12M 7.4 0.1 0:00.61 python 2083 root 0 506M 159M 6.5 1.6 0:29.26 Xorg 4503 giampaol 0 599M 25M 6.5 0.3 3:32.60 gnome-terminal |
