diff options
| author | Yifan Hong <elsk@google.com> | 2018-01-16 16:03:36 -0800 |
|---|---|---|
| committer | Yifan Hong <elsk@google.com> | 2018-01-16 19:25:01 -0800 |
| commit | 845e35bdc38fae940bed36438bede7bf96b98d4d (patch) | |
| tree | 21020b51650699c16e79253412772c8ed8ec8cdf /storaged/storaged.cpp | |
| parent | c4b46e0ad972cf8f238794349c6e939b268de522 (diff) | |
| download | system_core-845e35bdc38fae940bed36438bede7bf96b98d4d.tar.gz system_core-845e35bdc38fae940bed36438bede7bf96b98d4d.tar.bz2 system_core-845e35bdc38fae940bed36438bede7bf96b98d4d.zip | |
storaged: use health HAL to read StorageInfo.
Test: storaged unit tests
Bug: 68388678
Change-Id: Iec395a33bac72f49366e8c30ea7e709c8acdcfa2
Diffstat (limited to 'storaged/storaged.cpp')
| -rw-r--r-- | storaged/storaged.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/storaged/storaged.cpp b/storaged/storaged.cpp index 09f2abec1..6807cd920 100644 --- a/storaged/storaged.cpp +++ b/storaged/storaged.cpp @@ -87,6 +87,7 @@ Return<void> storaged_t::healthInfoChanged(const HealthInfo& props) { void storaged_t::init() { init_health_service(); mDsm = std::make_unique<disk_stats_monitor>(health); + storage_info.reset(storage_info_t::get_storage_info(health)); } void storaged_t::init_health_service() { @@ -157,8 +158,6 @@ storaged_t::storaged_t(void) { property_get_int32("ro.storaged.flush_proto.interval", DEFAULT_PERIODIC_CHORES_INTERVAL_FLUSH_PROTO); - storage_info.reset(storage_info_t::get_storage_info()); - mStarttime = time(NULL); mTimer = 0; } |
