Skip to content
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

fix: MemoryMonitor breaking on OS that does not provide buffered and cached memory data #1486

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

unnawut
Copy link
Contributor

@unnawut unnawut commented Apr 23, 2020

Closes #1484

Overview

This PR skips buffered and cached memory in memory usage calculation if the running OS does not provide them.

Changes

  • Consider buffered and cached memory as 0 if not provided.

Testing

mix test test/omg_status/monitor/memory_monitor_test.exs

Running elixir-omg on MacOS should no longer crash the monitor

@unnawut unnawut self-assigned this Apr 23, 2020
@unnawut unnawut requested review from InoMurko and pgebal April 23, 2020 10:17
@unnawut unnawut marked this pull request as ready for review April 23, 2020 10:17
@unnawut unnawut requested a review from achiurizo April 23, 2020 10:19
@unnawut unnawut merged commit 4c5dfd8 into master Apr 23, 2020
@unnawut unnawut deleted the unnawut/1484-fix-memsup-data branch April 23, 2020 11:00
@unnawut unnawut added the bug Something isn't working label Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_system_memory_data does not have a consistent API
3 participants