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

Commit 7feab682 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
Change-Id: I9a805ddfde8156b066485902048d0cd01365c453
parent 8cde0906
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -318,8 +318,7 @@ void DoReboot(unsigned int cmd, const std::string& reason, const std::string& re
        abort();
    }

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