mirror of https://github.com/zulip/zulip.git
Fixed typos with threshold.
This commit is contained in:
parent
effa7523a4
commit
ff8639f9db
|
@ -85,7 +85,7 @@ def to_zephyr_username(zulip_username):
|
||||||
# significantly shorter than the following line (which, if they were
|
# significantly shorter than the following line (which, if they were
|
||||||
# in the same paragraph, should have been wrapped in a way consistent
|
# in the same paragraph, should have been wrapped in a way consistent
|
||||||
# with how the previous line was wrapped) or (2) shorter than 60
|
# with how the previous line was wrapped) or (2) shorter than 60
|
||||||
# characters (our assumed minimum linewrapping threshhold for Zephyr)
|
# characters (our assumed minimum linewrapping threshold for Zephyr)
|
||||||
# or (3) the first word of the next line is longer than this entire
|
# or (3) the first word of the next line is longer than this entire
|
||||||
# line.
|
# line.
|
||||||
def different_paragraph(line, next_line):
|
def different_paragraph(line, next_line):
|
||||||
|
|
|
@ -35,7 +35,7 @@ for results_file_name in os.listdir(RESULTS_DIR):
|
||||||
data = open(results_file).read().strip()
|
data = open(results_file).read().strip()
|
||||||
last_check = os.stat(results_file).st_mtime
|
last_check = os.stat(results_file).st_mtime
|
||||||
time_since_last_check = time.time() - last_check
|
time_since_last_check = time.time() - last_check
|
||||||
# time_since_last_check threshhold needs to be strictly greater
|
# time_since_last_check threshold needs to be strictly greater
|
||||||
# than 1 minute, since with cron we expect intervals of at least 1
|
# than 1 minute, since with cron we expect intervals of at least 1
|
||||||
# minute without any update
|
# minute without any update
|
||||||
if data.split("\n")[-1].strip() != "0" or time_since_last_check >= 90:
|
if data.split("\n")[-1].strip() != "0" or time_since_last_check >= 90:
|
||||||
|
|
Loading…
Reference in New Issue