forked from lix-project/lix
build-remote: replace strtoull with stoull to take advantage of C++ error handling
This commit is contained in:
parent
167d12b02c
commit
bff3ad767e
1 changed files with 2 additions and 2 deletions
|
@ -139,8 +139,8 @@ int main (int argc, char * * argv)
|
|||
auto store = openStore();
|
||||
|
||||
auto localSystem = argv[1];
|
||||
settings.maxSilentTime = strtoull(argv[2], NULL, 10);
|
||||
settings.buildTimeout = strtoull(argv[3], NULL, 10);
|
||||
settings.maxSilentTime = stoull(string(argv[2]));
|
||||
settings.buildTimeout = stoull(string(argv[3]));
|
||||
|
||||
currentLoad = getEnv("NIX_CURRENT_LOAD", "/run/nix/current-load");
|
||||
|
||||
|
|
Loading…
Reference in a new issue