diff options
Diffstat (limited to 'src/configuration.hpp')
-rw-r--r-- | src/configuration.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/configuration.hpp b/src/configuration.hpp index 99dbec1..68606cc 100644 --- a/src/configuration.hpp +++ b/src/configuration.hpp @@ -39,8 +39,10 @@ class Configuration static std::vector<std::string> toArgs(const MountPoint& mp) { + const auto timeout = std::to_string(mp.timeout.value_or(30)); std::vector<std::string> args = { - "-t", "30", "-u", mp.unixSocket, mp.nbdDevice.to_path(), "-n"}; + "-t", timeout, "-u", mp.unixSocket, mp.nbdDevice.to_path(), + "-n"}; return args; } }; |