From 09408ae80037c76d94dbeadb09cf5f01297f8b4d Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Sat, 31 Jul 2021 22:11:10 -0700 Subject: [PATCH] :fire: "#include " --- main.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/main.cpp b/main.cpp index 656693c..910fb8e 100644 --- a/main.cpp +++ b/main.cpp @@ -1,5 +1,4 @@ #include -#include #include #include #include @@ -94,15 +93,14 @@ int main(int argc, char **argv) const unsigned long saving_freq = std::stoul(std::string(argv[2])); if (saving_freq) //if saving frequency is 0 then auto saving is turned off { - std::thread([saving_freq]() - { - while (1) - { - std::this_thread::sleep_for(std::chrono::minutes(saving_freq)); - std::cout << "Saving " << std::time(0) << "...\n" - << Bank::Save(); - } - }) + std::thread([saving_freq]() { + while (1) + { + std::this_thread::sleep_for(std::chrono::minutes(saving_freq)); + std::cout << "Saving " << std::time(0) << "...\n" + << Bank::Save(); + } + }) .detach(); } } //destroying setup variables