-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathseattleinstaller.py.patch
46 lines (44 loc) · 2.16 KB
/
seattleinstaller.py.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Index: seattleinstaller.py
===================================================================
--- seattleinstaller.py (revision 7319)
+++ seattleinstaller.py (working copy)
@@ -1949,6 +1949,13 @@
repy_prepend.extend(value.split())
elif flag == "--repy-prepend-dir":
repy_prepend_dir = value
+ # Check for resource overrides...
+ elif flag in ["--netrecv", "--netsend"]:
+ try:
+ benchmark_resources.DEFAULT_MAX_RESOURCE_DICT[flag.lstrip('-')] = int(value)
+ except ValueError:
+ usage()
+ return False
# Print this notification after having processed all the arguments in case one
# of the arguments specifies silent mode.
@@ -2074,6 +2081,7 @@
print "[-s] [--usage] " \
+ "[--disable-startup-script] [--percent float] " \
+ + "[--netrecv bytes] [--netsend bytes] " \
+ "[--nm-key-bitsize bitsize] [--nm-ip ip] [--nm-iface iface] " \
+ "[--repy-ip ip] [--repy-iface iface] [--repy-nootherips] " \
+ "[--onlynetwork] [--repy-prepend args] [--repy-prepend-dir dir]"
@@ -2086,6 +2094,8 @@
print "--percent percent\t\tSpecifies the desired percentage of available " \
+ "system resources to donate. Default percentage: " \
+ str(RESOURCE_PERCENTAGE)
+ print "--netrecv bytes\t\t\tSpecifies the total incoming bandwidth to donate."
+ print "--netsend bytes\t\t\tSpecifies the total outgoing bandwidth to donate."
print "--nm-key-bitsize bitsize\tSpecifies the desired bitsize of the Node " \
+ "Manager keys. Default bitsize: " + str(KEYBITSIZE)
print "--nm-ip IP\t\t\tSpecifies a preferred IP for the NM. Multiple may " \
@@ -2126,7 +2136,9 @@
"nm-iface=","repy-ip=","repy-iface=",
"repy-nootherips","onlynetwork",
"disable-startup-script","usage",
- "repy-prepend=", "repy-prepend-dir="])
+ "repy-prepend=", "repy-prepend-dir=",
+ # Resource override arguments
+ "netrecv=", "netsend="])
except getopt.GetoptError, err:
print str(err)
usage()