diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2012-08-13 12:31:18 +0000 |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2012-08-13 12:31:18 +0000 |
commit | b3c1416b15bd01911d5e4f0f6479b887fb0ec4b8 (patch) | |
tree | 726001e12d3f53890b8348a2f23057a2e3094ce7 | |
parent | 66d5b552b09af7b3f43befed6d2c0bde7427aacc (diff) | |
download | psutil-release-0.6.0.tar.gz |
meminfo.py, visualize ints instead of floatsrelease-0.6.0
-rw-r--r-- | examples/meminfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/meminfo.py b/examples/meminfo.py index 94eef670..1e755648 100644 --- a/examples/meminfo.py +++ b/examples/meminfo.py @@ -14,7 +14,7 @@ import psutil from psutil._compat import print_ def to_meg(n): - return str(n / 1024 / 1024) + "M" + return str(int(n / 1024 / 1024)) + "M" def pprint_ntuple(nt): for name in nt._fields: |