mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 08:32:13 +11:00
✨ more descriptive outputs
This commit is contained in:
parent
c8b7935329
commit
40863d5dda
1 changed files with 6 additions and 2 deletions
8
main.cpp
8
main.cpp
|
|
@ -29,7 +29,6 @@ void SaveSig(int s)
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
std::cout << "\nSSE3 : " << (__builtin_cpu_supports("sse3") ? "enabled" : "disabled")
|
std::cout << "\nSSE3 : " << (__builtin_cpu_supports("sse3") ? "enabled" : "disabled")
|
||||||
<< "\nCores : " << get_nprocs() / 2
|
|
||||||
<< "\nThreads : " << get_nprocs() + 1
|
<< "\nThreads : " << get_nprocs() + 1
|
||||||
<< std::endl; //flushing before EventLoop
|
<< std::endl; //flushing before EventLoop
|
||||||
|
|
||||||
|
|
@ -71,11 +70,16 @@ int main(int argc, char **argv)
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
std::this_thread::sleep_for(std::chrono::minutes(saving_freq));
|
std::this_thread::sleep_for(std::chrono::minutes(saving_freq));
|
||||||
|
std::cout << "Saving " << std::time(0) << '\n';
|
||||||
if (bank.GetChangeState())
|
if (bank.GetChangeState())
|
||||||
{
|
{
|
||||||
|
std::cout << " to disk...\n";
|
||||||
bank.Save();
|
bank.Save();
|
||||||
}
|
}
|
||||||
std::cout << "Saving " << std::time(0) << '\n';
|
else
|
||||||
|
{
|
||||||
|
std::cout << " no changes...\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}).detach();
|
}).detach();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue