From: Daniel Hokka Zakrisson Date: Sun, 13 Apr 2008 22:36:09 +0000 (+0000) Subject: sys.maxint is 2^63-1 on 64-bit architectures, which is too large for an int. X-Git-Tag: MyPLC-4.2-6~4 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=f50ffbf01f8adbdd8a63d89a351c96a2ca36548e sys.maxint is 2^63-1 on 64-bit architectures, which is too large for an int. --- diff --git a/db-config b/db-config index 0b06a85..5083b58 100755 --- a/db-config +++ b/db-config @@ -554,13 +554,9 @@ def main(): 'name' : "ifname", 'description': "Set interface name, instead of eth0 or the like", 'min_role_id' : 40}, - {'category' : "general", - 'name' : "driver", - 'description': "Use this to specify an alternate driver", - 'min_role_id' : 40 }, - {'category' : "general", + {'category' : "Multihome", 'name' : "alias", - 'description': "Allows to reuse an interface as eth0:alias", + 'description': "Specifies that the network is used for multihoming", 'min_role_id' : 40}, {'category' : "hidden", @@ -610,7 +606,7 @@ def main(): 'url': url, 'instantiation': "plc-instantiated", # Renew forever (minus one day, work around date conversion weirdness) - 'expires': sys.maxint - (60 * 60 * 24), + 'expires': 0x7fffffff - (60 * 60 * 24), 'attributes': [('system', "1"), ('vref', "planetflow"), ('proper_op', "open file=/etc/passwd, flags=r"), @@ -622,7 +618,7 @@ def main(): 'url': url, 'instantiation': "plc-instantiated", # Renew forever (minus one day, work around date conversion weirdness) - 'expires': sys.maxint - (60 * 60 * 24), + 'expires': 0x7fffffff - (60 * 60 * 24), 'attributes': [('system', "1"), ('net_min_rate', "2000"), ('cpu_pct', "25"),