mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-23 19:12:11 +10:00
Merge pull request #81 from Eigenbaukombinat/main
This commit is contained in:
@@ -552,7 +552,7 @@ def main():
|
|||||||
|
|
||||||
# Core polling loop
|
# Core polling loop
|
||||||
while True:
|
while True:
|
||||||
loop_start = datetime.now()
|
loop_start = time.perf_counter()
|
||||||
|
|
||||||
inverter.checkConnection()
|
inverter.checkConnection()
|
||||||
|
|
||||||
@@ -567,8 +567,8 @@ def main():
|
|||||||
inverter.disconnect()
|
inverter.disconnect()
|
||||||
logging.warning(f"Data collection failed, skipped exporting data. Retying in {scan_interval} secs")
|
logging.warning(f"Data collection failed, skipped exporting data. Retying in {scan_interval} secs")
|
||||||
|
|
||||||
loop_end = datetime.now()
|
loop_end = time.perf_counter()
|
||||||
process_time = round(float(((loop_end - loop_start).seconds) + ((loop_end - loop_start).microseconds / 1000000)),2)
|
process_time = round(loop_end - loop_start, 2)
|
||||||
logging.debug(f'Processing Time: {process_time} secs')
|
logging.debug(f'Processing Time: {process_time} secs')
|
||||||
|
|
||||||
if 'runonce' in locals():
|
if 'runonce' in locals():
|
||||||
|
|||||||
Reference in New Issue
Block a user