fixed compatibility with python 2.5 and removed unused code

This commit is contained in:
Pablo Hoffman 2011-01-05 11:59:19 -02:00
parent 0ba9999cca
commit ebf5ad933e
1 changed files with 2 additions and 3 deletions

View File

@ -1,3 +1,5 @@
from __future__ import with_statement
import os
import sys
import struct
@ -64,7 +66,4 @@ def _vmvalue_solaris(vmkey, pid):
vm_in_kB = parts[vmkey_index[vmkey]]
def kB_to_Bytes(kB):
return kB * 1024
return vm_in_kB * 1024