Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be7ddb00 authored by Keun-young Park's avatar Keun-young Park
Browse files

set default shutdown timeout to 6 secs

- Test data shows that most shutdown finishes in 6 secs.
- The original 10 secs is too long wih no shutdown animation
  running in screen.

bug: 36657139
Test: check time with reboot

(cherry picked from commit 7feab682)

Change-Id: I2e0ec81baa7b6cdb1ff0163c16f643c2549d74ab
parent f1f5eefc
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -318,8 +318,7 @@ void DoReboot(unsigned int cmd, const std::string& reason, const std::string& re
        abort();
        abort();
    }
    }


    /* TODO update default waiting time based on usage data */
    constexpr unsigned int shutdownTimeoutDefault = 6;
    constexpr unsigned int shutdownTimeoutDefault = 10;
    unsigned int shutdownTimeout = shutdownTimeoutDefault;
    unsigned int shutdownTimeout = shutdownTimeoutDefault;
    if (SHUTDOWN_ZERO_TIMEOUT) {  // eng build
    if (SHUTDOWN_ZERO_TIMEOUT) {  // eng build
        shutdownTimeout = 0;
        shutdownTimeout = 0;