Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Use available memory instead of free memory #281

Merged
merged 1 commit into from Jun 9, 2020

Conversation

jjnicola
Copy link
Member

@jjnicola jjnicola commented Jun 9, 2020

When check for enough free memory before starting a scan, check for available memory now

When the command line 'free -h' is called, the output shows two different values: available and free memory. Available is the one with more fluctuation and the one we should check instead of free, because it gives a more realistic value for checking if there is enough memory before starting a queued scan.

More info can be found in the free command man page.

@codecov
Copy link

codecov bot commented Jun 9, 2020

Codecov Report

Merging #281 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #281   +/-   ##
=======================================
  Coverage   75.04%   75.04%           
=======================================
  Files          22       22           
  Lines        2480     2480           
=======================================
  Hits         1861     1861           
  Misses        619      619           
Impacted Files Coverage Δ
ospd/ospd.py 75.80% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2082fec...7f52f6d. Read the comment docs.

When check for enough free memory before starting a scan, check for available memory now

When the command line 'free -h' is called, the output shows two different values: available and free memory. Available is the one with more fluctuation and the one we should check instead of free, because it gives a more realistic value for checking if there is enough memory before starting a queued scan.

More info can be found in the free command man page.
@bjoernricks bjoernricks merged commit 408a02b into greenbone:master Jun 9, 2020
@jjnicola jjnicola deleted the available branch June 9, 2020 15:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants