summaryrefslogtreecommitdiffstats
path: root/components/power/origin_power_map.cc
diff options
context:
space:
mode:
Diffstat (limited to 'components/power/origin_power_map.cc')
-rw-r--r--components/power/origin_power_map.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/power/origin_power_map.cc b/components/power/origin_power_map.cc
index 4ce32e2..69d9fbd 100644
--- a/components/power/origin_power_map.cc
+++ b/components/power/origin_power_map.cc
@@ -59,4 +59,9 @@ void OriginPowerMap::OnAllOriginsUpdated() {
callback_list_.Notify();
}
+void OriginPowerMap::ClearOriginMap() {
+ origin_map_.clear();
+ total_consumed_ = 0;
+}
+
} // namespace power