Refactoring

- Skip calling time(nullptr) twice
- Use getter method for m_api instead of exposing it
- Moved api_udate_*() back to private since they're not used anywhere else
This commit is contained in:
SChernykh
2021-10-04 10:28:56 +02:00
parent a0a31b0f3b
commit 52e5008bf4
4 changed files with 21 additions and 30 deletions

View File

@@ -154,9 +154,8 @@ private:
time_t m_apiLastUpdateTime;
void update_hashrate_data(uint64_t target);
void api_update_local_stats();
void update_hashrate_data(uint64_t target, time_t timestamp);
void api_update_local_stats(time_t timestamp);
};
} // namespace p2pool