From 119ebc9b7c03eea45545ca06ba98cea7c50bf979 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 9 Nov 2012 16:05:42 +0100 Subject: [PATCH] Reduce device size minimum requirement to 850MB --- src/usbinstall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usbinstall.py b/src/usbinstall.py index 70f7f93..9744d61 100755 --- a/src/usbinstall.py +++ b/src/usbinstall.py @@ -256,8 +256,8 @@ def get_list(): for dev in ud_manager.EnumerateDevices(): device_obj = bus.get_object('org.freedesktop.UDisks', dev) device_props = dbus.Interface(device_obj, dbus.PROPERTIES_IFACE) - # If dev.space > 1 Gb - if(device_props.Get('org.freedesktop.UDisks.Device', 'PartitionSize')) > 1073741823: + # If dev.space > 850 MB + if(device_props.Get('org.freedesktop.UDisks.Device', 'PartitionSize')) > 891289600: # If dev is removable if(device_props.Get('org.freedesktop.UDisks.Device', 'DeviceIsRemovable')): # Populate the arrays