mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
patch for ccashdeploy docker
This commit is contained in:
parent
315c0d934f
commit
fd11a4d52a
1 changed files with 2 additions and 2 deletions
4
main.cpp
4
main.cpp
|
|
@ -55,7 +55,7 @@ int main(int argc, char **argv)
|
|||
bank.admin_pass = argv[1];
|
||||
|
||||
//Auto Saving
|
||||
const unsigned long saving_freq = std::stoul(argv[2]);
|
||||
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]() {
|
||||
|
|
@ -73,7 +73,7 @@ int main(int argc, char **argv)
|
|||
[](const drogon::HttpRequestPtr &req, const drogon::HttpResponsePtr &resp) {
|
||||
resp->addHeader("Access-Control-Allow-Origin", "*");
|
||||
});
|
||||
app().loadConfigFile(config_location).registerController(API).setThreadNum(std::stoul(argv[3])).run();
|
||||
app().loadConfigFile(config_location).registerController(API).setThreadNum(std::stoul(std::string(argv[3]))).run();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue