From cc85208fe44fe97b0b6cc265f79a9e27a1aedcc3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 18 Apr 2017 20:46:13 +0200 Subject: [PATCH] Fix build --- src/hydra-queue-runner/hydra-queue-runner.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 21d1be52..8aacd007 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -71,7 +71,7 @@ static uint64_t getMemSize() State::State() - : config(std::make_unique()) + : config(std::make_unique<::Config>()) , dbPool(config->getIntOption("max_db_connections", 128)) , memoryTokens(config->getIntOption("nar_buffer_size", getMemSize() / 2)) , maxOutputSize(config->getIntOption("max_output_size", 2ULL << 30)) @@ -189,7 +189,7 @@ void State::monitorMachinesFile() if (machinesFiles.empty()) { parseMachines("localhost " + - (settings.thisSystem == "x86_64-linux" ? "x86_64-linux,i686-linux" : settings.thisSystem) + (settings.thisSystem == "x86_64-linux" ? "x86_64-linux,i686-linux" : settings.thisSystem.get()) + " - " + std::to_string(settings.maxBuildJobs) + " 1"); return; }