Skip to content

Commit 30950ee

Browse files
author
lolololol
committed
rename arg
1 parent fde9769 commit 30950ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tracediff.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,13 @@ def doCompareTraces(tn1,tn2):
147147
plt.show()
148148

149149
if __name__ == "__main__":
150-
opts,remainder = getopt.getopt(sys.argv[1:],"f:o:n:",["file=","offset=","samples=","samplesize="])
150+
opts,remainder = getopt.getopt(sys.argv[1:],"f:o:n:",["file=","offset=","samples=","resample="])
151151
for opt, arg in opts:
152152
if opt in ("-f","--file"):
153153
TRACE_FILES.append(arg)
154-
elif opt == "--samplesize":
154+
elif opt == "--resample":
155155
CONFIG_SAMPSZ = int(arg)
156+
print("TraceDiff: Selecting %d random samples from each file" % CONFIG_SAMPSZ)
156157
elif opt in ("-o","--offset"):
157158
CONFIG_OFFSET = int(arg)
158159
elif opt in ("-n","--samples"):

0 commit comments

Comments
 (0)