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

Commit 0a8ac0f9 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Fix minor time bug in ConsentCallback::getElapsedTimeMs" am: 3ed75889...

Merge "Fix minor time bug in ConsentCallback::getElapsedTimeMs" am: 3ed75889 am: c17ca50b am: 73061b92

Change-Id: I647e27100bb1429b2fc1fd1ee474dc763d2cbbfb
parents 466691be 73061b92
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@

// TODO: use functions from <chrono> instead
const uint64_t NANOS_PER_SEC = 1000000000;
const uint64_t NANOS_PER_MILLI = 1000000;
uint64_t Nanotime();

// Switches to non-root user and group.
+1 −1
Original line number Diff line number Diff line
@@ -649,7 +649,7 @@ UserConsentResult Dumpstate::ConsentCallback::getResult() {
}

uint64_t Dumpstate::ConsentCallback::getElapsedTimeMs() const {
    return Nanotime() - start_time_;
    return (Nanotime() - start_time_) / NANOS_PER_MILLI;
}

void Dumpstate::PrintHeader() const {