From 2e49bc4d5d5fe9d88f987a6712eec5b349f16938 Mon Sep 17 00:00:00 2001 From: Deepak Majeti Date: Wed, 8 Oct 2025 16:45:56 -0400 Subject: [PATCH] fix(native): Watchdog fails to run --- presto-native-execution/presto_cpp/main/common/Configs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presto-native-execution/presto_cpp/main/common/Configs.cpp b/presto-native-execution/presto_cpp/main/common/Configs.cpp index 76613ee440df4..638b03f67891e 100644 --- a/presto-native-execution/presto_cpp/main/common/Configs.cpp +++ b/presto-native-execution/presto_cpp/main/common/Configs.cpp @@ -166,7 +166,7 @@ SystemConfig::SystemConfig() { NUM_PROP(kDriverStuckOperatorThresholdMs, 30 * 60 * 1000), NUM_PROP( kDriverCancelTasksWithStuckOperatorsThresholdMs, 40 * 60 * 1000), - NUM_PROP(kDriverNumStuckOperatorsToDetachWorker, 0.5 * hardwareConcurrency()), + NUM_PROP(kDriverNumStuckOperatorsToDetachWorker, std::round(0.5 * hardwareConcurrency())), NUM_PROP(kSpillerNumCpuThreadsHwMultiplier, 1.0), STR_PROP(kSpillerFileCreateConfig, ""), STR_PROP(kSpillerDirectoryCreateConfig, ""),