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

Commit 6955f0c9 authored by joker.yang's avatar joker.yang Committed by Joe Onorato
Browse files

Always use a positive value for timestamp

on go device when try to get timestamp, the value over-followed sometimes
as a result, GtsIncidentManagerTestCases would fail due to a negative timestamp

Bug: 142513252
Change-Id: I7d5e701bb8bf4e788a718e093681f97b95cb8551
parent 30642b39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -666,7 +666,7 @@ int64_t WorkDirectory::make_timestamp_ns_locked() {
        clock_gettime(CLOCK_REALTIME, &spec);
        timestampNs = int64_t(spec.tv_sec) * 1000 + spec.tv_nsec;
    } while (file_exists_locked(timestampNs));
    return timestampNs;
    return (timestampNs >= 0)? timestampNs : -timestampNs;
}

/**