Skip to content

Commit

Permalink
build-remote: replace strtoull with stoull to take advantage of C++ e…
Browse files Browse the repository at this point in the history
…rror handling
  • Loading branch information
shlevy committed Jul 29, 2016
1 parent bd5d153 commit 5dd21d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build-remote/build-remote.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 5dd21d1

Please sign in to comment.