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

Commit f8193123 authored by Steven Moreland's avatar Steven Moreland
Browse files

dumpstate: use pretty uptime, now in ABT

I was having a hard time reading this. Now it looks
like this:

------ UPTIME (uptime -p) ------
up 0 weeks, 0 days, 0 hours, 3 minutes,  load average: 37.75, 10.12, 3.55

Previously, it was like this, which is ambiguous:

08:35:37 up 16:07, 0 users, load average: 7.12, 11.39, 11.27

Yes, we lose the 'current time'. However, we also have this in the
bugreport a lot.

Fixes: 419080594
Test: adb bugreport (text above)

Change-Id: I26833a0d3e0e6b82a6dccda4b335006462c239b3
parent f68c5f1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1752,7 +1752,7 @@ Dumpstate::RunStatus Dumpstate::dumpstate() {
    // check intermittently (if it's intrerruptable like a foreach on pids) and/or should be wrapped
    // in a consent check (via RUN_SLOW_FUNCTION_WITH_CONSENT_CHECK).
    dump_dev_files("TRUSTY VERSION", "/sys/bus/platform/drivers/trusty", "trusty_version");
    RunCommand("UPTIME", {"uptime"});
    RunCommand("UPTIME", {"uptime", "-p"});
    DumpBlockStatFiles();
    DumpFile("MEMORY INFO", "/proc/meminfo");
    RunCommand("CPU INFO", {"top", "-b", "-n", "1", "-H", "-s", "6", "-o",