summaryrefslogtreecommitdiff
path: root/libperfmgr/Node.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libperfmgr/Node.cc')
-rw-r--r--libperfmgr/Node.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/libperfmgr/Node.cc b/libperfmgr/Node.cc
index 8c13dae4..eb180e65 100644
--- a/libperfmgr/Node.cc
+++ b/libperfmgr/Node.cc
@@ -16,13 +16,13 @@
#define LOG_TAG "libperfmgr"
+#include "perfmgr/Node.h"
+
#include <android-base/file.h>
#include <android-base/logging.h>
#include <android-base/stringprintf.h>
#include <android-base/strings.h>
-#include "perfmgr/Node.h"
-
namespace android {
namespace perfmgr {
@@ -34,10 +34,7 @@ Node::Node(std::string name, std::string node_path,
req_sorted_(std::move(req_sorted)),
default_val_index_(default_val_index),
reset_on_init_(reset_on_init),
- // Assigning an invalid value so the next Update() will update the
- // Node's value to default
- current_val_index_(reset_on_init ? req_sorted_.size()
- : default_val_index) {}
+ current_val_index_(default_val_index) {}
bool Node::AddRequest(std::size_t value_index, const std::string& hint_type,
ReqTime end_time) {