mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 12:14:48 +00:00
metrics: Update memory usage script
This PR updates memory usage script by applying the clean_env_ctr at the main in order to avoid failures of leaving certain processes not removed. Fixes #7302 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
ceb5c69ee8
commit
ce54e43ebe
@ -320,8 +320,6 @@ EOF
|
||||
|
||||
metrics_json_add_array_element "$json"
|
||||
metrics_json_end_array "Results"
|
||||
|
||||
clean_env_ctr
|
||||
}
|
||||
|
||||
function save_config(){
|
||||
@ -378,6 +376,7 @@ function main(){
|
||||
fi
|
||||
|
||||
metrics_json_save
|
||||
clean_env_ctr
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user