Skip to content

Properly convert milliseconds to seconds #767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion release_build_files/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,9 @@ code.
([#745](https://github.com/firebase/firebase-cpp-sdk/pull/745))
- Messaging (Android): Fixed crash during initialization.
([#760](https://github.com/firebase/firebase-cpp-sdk/pull/760))

- Remote Config (Desktop): Fixed cache expiration time value used by
`RemoteConfig::FetchAndActivate()`.
([#767](https://github.com/firebase/firebase-cpp-sdk/pull/767))

### 8.7.0
- Changes
Expand Down
3 changes: 2 additions & 1 deletion remote_config/src/desktop/remote_config_desktop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ Future<bool> RemoteConfigInternal::FetchAndActivate() {
future_impl_.SafeAlloc<bool>(kRemoteConfigFnFetchAndActivate);

cache_expiration_in_seconds_ =
config_settings_.minimum_fetch_interval_in_milliseconds;
config_settings_.minimum_fetch_interval_in_milliseconds /
::firebase::internal::kMillisecondsPerSecond;

uint64_t milliseconds_since_epoch =
std::chrono::duration_cast<std::chrono::milliseconds>(
Expand Down