Skip to content

Commit

Permalink
Fixed windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Apr 25, 2012
1 parent 75ca170 commit da98179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memory_profiler.py
Expand Up @@ -12,7 +12,7 @@

def _get_memory(pid):
process = psutil.Process(pid)
return process.get_memory_info()[0]
return float((float(process.get_memory_info()[0]) / 1024)) / 1024
except ImportError:
import subprocess

Expand Down

0 comments on commit da98179

Please sign in to comment.