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

Commit f4be88f7 authored by Yao Chen's avatar Yao Chen
Browse files

Fix timestamp error in GaugeMetric

Bug: 111516208
Test: unit tests pass, manually tested too
Change-Id: Ia268d3a38c331daab0f96c33461bb7dc794ce610
parent c304ce50
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -33,7 +33,7 @@ namespace os {
namespace statsd {
namespace statsd {


struct GaugeAtom {
struct GaugeAtom {
    GaugeAtom(std::shared_ptr<vector<FieldValue>> fields, int64_t elapsedTimeNs, int wallClockNs)
    GaugeAtom(std::shared_ptr<vector<FieldValue>> fields, int64_t elapsedTimeNs, int64_t wallClockNs)
        : mFields(fields), mElapsedTimestamps(elapsedTimeNs), mWallClockTimestampNs(wallClockNs) {
        : mFields(fields), mElapsedTimestamps(elapsedTimeNs), mWallClockTimestampNs(wallClockNs) {
    }
    }
    std::shared_ptr<vector<FieldValue>> mFields;
    std::shared_ptr<vector<FieldValue>> mFields;