libperfmgr: Change NodeLooperThread thread wait time
Test: libperfmgr_test
(cherry picked from commit 2df42ebbd4e562df8416432264c7ccd5d2639598)
Change-Id: Ie09a7d73180a0411ca922153aee10dcab5483632
diff --git a/libperfmgr/include/perfmgr/NodeLooperThread.h b/libperfmgr/include/perfmgr/NodeLooperThread.h
index 5da0987..e8151c8 100644
--- a/libperfmgr/include/perfmgr/NodeLooperThread.h
+++ b/libperfmgr/include/perfmgr/NodeLooperThread.h
@@ -77,11 +77,7 @@
bool threadLoop() override;
void onFirstRef() override;
- // std::chrono::milliseconds::max() is too long
- // maintain the list every 60 seconds as the overhead
- // to loop is not too much if nothing changes
- static constexpr auto kMaxUpdatePeriod =
- std::chrono::milliseconds(60 * 1000);
+ static constexpr auto kMaxUpdatePeriod = std::chrono::milliseconds::max();
std::vector<std::unique_ptr<Node>> nodes_; // parsed from Config