build-remote: replace strtoull with stoull to take advantage of C++ error handling

This commit is contained in:
Shea Levy 2016-07-29 08:05:36 -04:00
parent 167d12b02c
commit bff3ad767e

View file

@ -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");