OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a070b6a
)
Avoid overwriting bucket in Gauge metric producer as anomaly tracker needs past buckets.
author
Yangster-mac
<yanglu@google.com>
Fri, 5 Jan 2018 20:00:37 +0000
(12:00 -0800)
committer
Yangster-mac
<yanglu@google.com>
Fri, 5 Jan 2018 20:00:37 +0000
(12:00 -0800)
Test: statsd unit test passed.
Change-Id: I3c76846da169b36c447c77db76b3deeda87e9e6e
cmds/statsd/src/metrics/GaugeMetricProducer.cpp
patch
|
blob
|
history
diff --git
a/cmds/statsd/src/metrics/GaugeMetricProducer.cpp
b/cmds/statsd/src/metrics/GaugeMetricProducer.cpp
index
e6f311b
..
1a4888c
100644
(file)
--- a/
cmds/statsd/src/metrics/GaugeMetricProducer.cpp
+++ b/
cmds/statsd/src/metrics/GaugeMetricProducer.cpp
@@
-326,6
+326,7
@@
void GaugeMetricProducer::flushIfNeededLocked(const uint64_t& eventTimeNs) {
}
}
+ mCurrentSlicedBucketForAnomaly = std::make_shared<DimToValMap>();
mCurrentSlicedBucket = std::make_shared<DimToGaugeFieldsMap>();
// Adjusts the bucket start time