Skip to content

Commit

Permalink
Fixing Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-sincek committed Sep 15, 2024
1 parent a2ef58e commit cc2c837
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ THREADS
Default: 5
-th, --threads = 20 | etc.
SLEEP
Sleep in milliseconds before sending an HTTP request
Sleep time in milliseconds before sending an HTTP request
Intended for a single-thread use
-s, --sleep = 500 | etc.
USER AGENT
Expand All @@ -545,7 +545,7 @@ OUT
Output file
-o, --out = results.json | etc.
DUMP
Dump all the test cases in the output file without running them
Dump all the test records in the output file without running them
-dmp, --dump
DEBUG
Debug output
Expand Down Expand Up @@ -625,7 +625,7 @@ DIRECTORY
All valid and unique HTTP responses will be saved in this directory
-dir, --directory = results | etc.
DUMP
Dump all the test cases in the output file without running them
Dump all the test records in the output file without running them
-dmp, --dump
DEBUG
Debug output
Expand Down
12 changes: 6 additions & 6 deletions src/forbidden/forbidden.py
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@ def print_help(self):
print(" Default: 5")
print(" -th, --threads = 20 | etc.")
print("SLEEP")
print(" Sleep in milliseconds before sending an HTTP request")
print(" Sleep time in milliseconds before sending an HTTP request")
print(" Intended for a single-thread use")
print(" -s, --sleep = 500 | etc.")
print("USER AGENT")
Expand All @@ -1788,7 +1788,7 @@ def print_help(self):
print(" Output file")
print(" -o, --out = results.json | etc.")
print("DUMP")
print(" Dump all the test cases in the output file without running them")
print(" Dump all the test records in the output file without running them")
print(" -dmp, --dump")
print("DEBUG")
print(" Debug output")
Expand Down Expand Up @@ -1990,20 +1990,20 @@ def __parse_request_timeout(self, value):

def __parse_threads(self, value):
if not value.isdigit():
self.__error("Number of parallel threads to run must be numeric")
self.__error("Number of parallel threads must be numeric")
else:
value = int(value)
if value <= 0:
self.__error("Number of parallel threads to run must be greater than zero")
self.__error("Number of parallel threads must be greater than zero")
return value

def __parse_sleep(self, value):
if not value.isdigit():
self.__error("Sleep must be numeric")
self.__error("Sleep time must be numeric")
else:
value = int(value) / 1000
if value <= 0:
self.__error("Sleep must be greater than zero")
self.__error("Sleep time must be greater than zero")
return value

def __parse_user_agent(self, value):
Expand Down
12 changes: 6 additions & 6 deletions src/stresser/stresser.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ def print_help(self):
print(" All valid and unique HTTP responses will be saved in this directory")
print(" -dir, --directory = results | etc.")
print("DUMP")
print(" Dump all the test cases in the output file without running them")
print(" Dump all the test records in the output file without running them")
print(" -dmp, --dump")
print("DEBUG")
print(" Debug output")
Expand Down Expand Up @@ -1134,20 +1134,20 @@ def __parse_request_timeout(self, value):

def __parse_repeat(self, value):
if not value.isdigit():
self.__error("Number of total HTTP requests to send must be numeric")
self.__error("Number of total HTTP requests must be numeric")
else:
value = int(value)
if value <= 0:
self.__error("Number of total HTTP requests to send must be greater than zero")
self.__error("Number of total HTTP requests must be greater than zero")
return value

def __parse_threads(self, value):
if not value.isdigit():
self.__error("Number of parallel threads to run must be numeric")
self.__error("Number of parallel threads must be numeric")
else:
value = int(value)
if value <= 0:
self.__error("Number of parallel threads to run must be greater than zero")
self.__error("Number of parallel threads must be greater than zero")
return value

def __parse_user_agent(self, value):
Expand Down Expand Up @@ -1177,7 +1177,7 @@ def __parse_status_codes(self, value):

def __parse_directory(self, value):
if not os.path.isdir(value):
self.__error("Output directory does not exists or is not a directory")
self.__error("Output directory does not exist or is not a directory")
return value

# ----------------------------------------
Expand Down

0 comments on commit cc2c837

Please sign in to comment.