mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
fixed
This commit is contained in:
parent
2e05197791
commit
2083e57d13
1 changed files with 50 additions and 50 deletions
10
main.cpp
10
main.cpp
|
|
@ -23,13 +23,14 @@ void SaveSig(int s)
|
|||
int main(int argc, char **argv)
|
||||
{
|
||||
static_assert(pre_log_size <= max_log_size, "`max_log_size` must be larger than `pre_log_size`.");
|
||||
if constexpr (!(max_log_size % pre_log_size) && max_log_size)
|
||||
if constexpr (max_log_size)
|
||||
{
|
||||
std::cerr << "`max_log_size` must be a multiple of `pre_log_size`.\n";
|
||||
if (max_log_size % pre_log_size)
|
||||
{
|
||||
std::cerr << "`max_log_size` must be a multiple of `pre_log_size`.";
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
|
||||
if (argc != 4)
|
||||
{
|
||||
|
|
@ -77,7 +78,6 @@ int main(int argc, char **argv)
|
|||
resp->addHeader("Access-Control-Allow-Origin", "*");
|
||||
});
|
||||
app().loadConfigFile("../config.json").registerController(API).setThreadNum(std::stoul(argv[3])).run();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue