Skip to content

Commit cc2c837

Browse files
committed
Fixing Typos
1 parent a2ef58e commit cc2c837

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ THREADS
522522
Default: 5
523523
-th, --threads = 20 | etc.
524524
SLEEP
525-
Sleep in milliseconds before sending an HTTP request
525+
Sleep time in milliseconds before sending an HTTP request
526526
Intended for a single-thread use
527527
-s, --sleep = 500 | etc.
528528
USER AGENT
@@ -545,7 +545,7 @@ OUT
545545
Output file
546546
-o, --out = results.json | etc.
547547
DUMP
548-
Dump all the test cases in the output file without running them
548+
Dump all the test records in the output file without running them
549549
-dmp, --dump
550550
DEBUG
551551
Debug output
@@ -625,7 +625,7 @@ DIRECTORY
625625
All valid and unique HTTP responses will be saved in this directory
626626
-dir, --directory = results | etc.
627627
DUMP
628-
Dump all the test cases in the output file without running them
628+
Dump all the test records in the output file without running them
629629
-dmp, --dump
630630
DEBUG
631631
Debug output

src/forbidden/forbidden.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ def print_help(self):
17651765
print(" Default: 5")
17661766
print(" -th, --threads = 20 | etc.")
17671767
print("SLEEP")
1768-
print(" Sleep in milliseconds before sending an HTTP request")
1768+
print(" Sleep time in milliseconds before sending an HTTP request")
17691769
print(" Intended for a single-thread use")
17701770
print(" -s, --sleep = 500 | etc.")
17711771
print("USER AGENT")
@@ -1788,7 +1788,7 @@ def print_help(self):
17881788
print(" Output file")
17891789
print(" -o, --out = results.json | etc.")
17901790
print("DUMP")
1791-
print(" Dump all the test cases in the output file without running them")
1791+
print(" Dump all the test records in the output file without running them")
17921792
print(" -dmp, --dump")
17931793
print("DEBUG")
17941794
print(" Debug output")
@@ -1990,20 +1990,20 @@ def __parse_request_timeout(self, value):
19901990

19911991
def __parse_threads(self, value):
19921992
if not value.isdigit():
1993-
self.__error("Number of parallel threads to run must be numeric")
1993+
self.__error("Number of parallel threads must be numeric")
19941994
else:
19951995
value = int(value)
19961996
if value <= 0:
1997-
self.__error("Number of parallel threads to run must be greater than zero")
1997+
self.__error("Number of parallel threads must be greater than zero")
19981998
return value
19991999

20002000
def __parse_sleep(self, value):
20012001
if not value.isdigit():
2002-
self.__error("Sleep must be numeric")
2002+
self.__error("Sleep time must be numeric")
20032003
else:
20042004
value = int(value) / 1000
20052005
if value <= 0:
2006-
self.__error("Sleep must be greater than zero")
2006+
self.__error("Sleep time must be greater than zero")
20072007
return value
20082008

20092009
def __parse_user_agent(self, value):

src/stresser/stresser.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ def print_help(self):
981981
print(" All valid and unique HTTP responses will be saved in this directory")
982982
print(" -dir, --directory = results | etc.")
983983
print("DUMP")
984-
print(" Dump all the test cases in the output file without running them")
984+
print(" Dump all the test records in the output file without running them")
985985
print(" -dmp, --dump")
986986
print("DEBUG")
987987
print(" Debug output")
@@ -1134,20 +1134,20 @@ def __parse_request_timeout(self, value):
11341134

11351135
def __parse_repeat(self, value):
11361136
if not value.isdigit():
1137-
self.__error("Number of total HTTP requests to send must be numeric")
1137+
self.__error("Number of total HTTP requests must be numeric")
11381138
else:
11391139
value = int(value)
11401140
if value <= 0:
1141-
self.__error("Number of total HTTP requests to send must be greater than zero")
1141+
self.__error("Number of total HTTP requests must be greater than zero")
11421142
return value
11431143

11441144
def __parse_threads(self, value):
11451145
if not value.isdigit():
1146-
self.__error("Number of parallel threads to run must be numeric")
1146+
self.__error("Number of parallel threads must be numeric")
11471147
else:
11481148
value = int(value)
11491149
if value <= 0:
1150-
self.__error("Number of parallel threads to run must be greater than zero")
1150+
self.__error("Number of parallel threads must be greater than zero")
11511151
return value
11521152

11531153
def __parse_user_agent(self, value):
@@ -1177,7 +1177,7 @@ def __parse_status_codes(self, value):
11771177

11781178
def __parse_directory(self, value):
11791179
if not os.path.isdir(value):
1180-
self.__error("Output directory does not exists or is not a directory")
1180+
self.__error("Output directory does not exist or is not a directory")
11811181
return value
11821182

11831183
# ----------------------------------------

0 commit comments

Comments
 (0)