Skip to content

Commit

Permalink
Update mineral.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorsumathi authored Sep 6, 2023
1 parent db00c63 commit 049192e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/margsoft/mineral.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def collectdataset(rtsp,names_file,weight_file,cfg_file,path,dir_n,x_1,y_1,w_1,z
while cpu_percent > exit_percent:
print(f"CPU utilization: {cpu_percent}%")
print(f"CPU utilization exceeded {exit_percent}%. Pausing until CPU utilization decreases...")
print("sleeping for 5 seconds)
print("sleeping for 5 seconds")
time.sleep(5) # Sleep for 1 second before checking again
cpu_percent = psutil.cpu_percent(interval=1)

Expand Down

0 comments on commit 049192e

Please sign in to comment.