don't count lines

This commit is contained in:
piotr
2021-10-27 02:26:34 +02:00
parent 857d6b3225
commit 356870dc30
2 changed files with 51 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ def check_tree():
def check_dwl_data(*args):
print("SIGUSR1")
global dwl_timestamp
"""global dwl_timestamp
timestamp = datetime.now()
diff = (timestamp - dwl_timestamp).total_seconds() * 1000
if diff > 50:
@@ -127,7 +127,12 @@ def check_dwl_data(*args):
print(diff)
for item in common.dwl_instances:
item.refresh(common.dwl_data)
dwl_timestamp = datetime.now()
dwl_timestamp = datetime.now()"""
common.dwl_data = load_json(common.dwl_data_file)
if common.dwl_data:
for item in common.dwl_instances:
item.refresh(common.dwl_data)
return True