From 214a4045f0f91162c1a5783bedaadc9fd57d7e43 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Mon, 11 Aug 2025 08:21:09 +0200 Subject: [PATCH] fix shutdown.cpp per a macos --- source/shutdown.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/shutdown.cpp b/source/shutdown.cpp index a36af10..5f3e163 100644 --- a/source/shutdown.cpp +++ b/source/shutdown.cpp @@ -92,7 +92,8 @@ namespace SystemShutdown { #elif __APPLE__ // macOS - std::string delay_str = "+" + std::to_string(config.delay_seconds / 60.0, 1); // convertir a minutos + double delay_minutes = config.delay_seconds / 60.0; + std::string delay_str = "+" + std::to_string(delay_minutes); if (config.delay_seconds < 60) { delay_str = "+0.1"; // mínimo delay en macOS }