Skip to content

Changes for working with Shadow main branch#7

Merged
robgjansen merged 10 commits intoshadow:mainfrom
robgjansen:classic
Apr 23, 2021
Merged

Changes for working with Shadow main branch#7
robgjansen merged 10 commits intoshadow:mainfrom
robgjansen:classic

Conversation

@robgjansen
Copy link
Copy Markdown
Member

No description provided.

@robgjansen robgjansen added the enhancement New feature or request label Apr 22, 2021
@robgjansen robgjansen requested a review from stevenengler April 22, 2021 13:31
@robgjansen robgjansen self-assigned this Apr 22, 2021
Comment on lines +129 to +132
if "mem_available" in data[some_key]:
used = {float(ts): data[ts]["mem_total"] - data[ts]["mem_available"] for ts in data}
else:
used = {float(ts): data[ts]["mem_used"] for ts in data}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be useful to print a warning message in the 'else' case? It might be confusing if the memory usage calculation is different between computers. For example if the memory usage increased linearly on one computer but non-linearly on another, it might not be obvious that the reason for the discrepancy is the measurement method.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done; thanks!

@robgjansen robgjansen merged commit eaab39a into shadow:main Apr 23, 2021
@robgjansen robgjansen deleted the classic branch April 23, 2021 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants