Skip to content

Commit

Permalink
Change interval setting from seconds to milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
eschan145 committed Jan 19, 2025
1 parent d9cd13c commit c32fdd9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion settings.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
update=500
internet_toggler=false
interval=1
interval=10
2 changes: 1 addition & 1 deletion src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ DK_API int monitor_executables(int interval) {

while (running) {
dieknow::sweep();
std::this_thread::sleep_for(std::chrono::seconds(interval));
std::this_thread::sleep_for(std::chrono::milliseconds(interval));
}
return count;
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Application::Application() {
tooltip(hwnd, interval_edit, "Delay between ticks for closing DyKnow.");
tooltip(hwnd, interval_set,
"Set the interval between ticks for closing DyKnow. Beware - an "
"interval of 0 can saturate a CPU core."
"interval of 0 can saturate a CPU core. In seconds."
);
tooltip(hwnd, executables_killed,
"Number of DyKnow executables terminated by DieKnow."
Expand Down

0 comments on commit c32fdd9

Please sign in to comment.