Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
pncakespoon1 committed May 3, 2023
1 parent 20020d4 commit 157c26e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ResetTracker/scripts/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def push_data():
live = True
while live:
push_data()
time.sleep(5)
time.sleep(3)
except Exception as e:
input("")

Expand Down Expand Up @@ -875,7 +875,7 @@ def trackResets(cls):
while live:
if not isTracking:
live = False
time.sleep(1)
time.sleep(3)
except Exception as e:
pass
finally:
Expand Down
8 changes: 2 additions & 6 deletions ResetTracker/scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@
import sys
import time
import math
<<<<<<< HEAD
=======
import sqlite3

multiCheckSupported = True
>>>>>>> f9e261d8a7b015e027f253752e49f937ee8d25d5

if sys.platform.startswith("win32"):
from ctypes import create_unicode_buffer, windll
Expand Down Expand Up @@ -123,11 +119,11 @@ def ms_to_string(cls, ms, returnTime=False):

ms = int(ms)
td = timedelta(milliseconds=ms)
if returnTime:
return datetime(1970, 1, 1) + td
if not timedelta(hours=0) < td < timedelta(hours=12):
td = timedelta(days=1) - td
t = datetime(1970, 1, 1) + td
if returnTime:
return t
return t.strftime("%H:%M:%S")


Expand Down

0 comments on commit 157c26e

Please sign in to comment.