fix shutdown.cpp per a macos
This commit is contained in:
@@ -92,7 +92,8 @@ namespace SystemShutdown {
|
|||||||
|
|
||||||
#elif __APPLE__
|
#elif __APPLE__
|
||||||
// macOS
|
// 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) {
|
if (config.delay_seconds < 60) {
|
||||||
delay_str = "+0.1"; // mínimo delay en macOS
|
delay_str = "+0.1"; // mínimo delay en macOS
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user