-
Notifications
You must be signed in to change notification settings - Fork 3
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 savedir, request mem and mem usage #803
base: master
Are you sure you want to change the base?
Conversation
e3e0c6f
to
decfcf5
Compare
src/utils_begin.jl
Outdated
@@ -324,19 +324,20 @@ Determines what the maximum memory is based on the device type (apple, windows, | |||
function localhost_memory() | |||
if Sys.isapple() | |||
cmd = `sysctl hw.memsize` # for OSX | |||
mem_size = parse(Int, match(r"\d+", readchomp(cmd)).match) / 1024^3 | |||
mem_size = parse(Int, match(r"\d+", readchomp(cmd)).match) / 1024^3 # GiB | |||
elseif Sys.isunix() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit worried about this Sys.isunix()
test before Sys.islinux()
test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing was changed with respect to that (just a comment that this in GiB)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, but should we move the Sys.isunix()
check as the last option?
I fear that a Linux system might fall into this if statement and not go in the Sys.islinux()
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #803 +/- ##
==========================================
- Coverage 59.76% 59.71% -0.06%
==========================================
Files 105 105
Lines 10501 10510 +9
==========================================
Hits 6276 6276
- Misses 4225 4234 +9 ☔ View full report in Codecov by Sentry. |
Do we want the windows test back? I'd be in favor as I will probably run it from windows now Can we add an exception to the code coverage when it comes to certain parts?
|
No description provided.