- currentallocation = open('/sys/devices/system/xen_memory/xen_memory0/info/current_kb', 'r').read()
- minimumtarget = open('/sys/devices/system/xen_memory/xen_memory0/target_kb', 'r').read()
+ currentallocation = int(open('/sys/devices/system/xen_memory/xen_memory0/info/current_kb', 'r').read())
+# this information seems to have vanished in recent linux - we _want_ min_target_kb, but it doesn't seem to be
+# exposed anymore.
+# minimumtarget = int(open('/sys/devices/system/xen_memory/xen_memory0/target_kb', 'r').read())