From 300e9ec8a91f2ea233c436a9628f96a04aed9cd2 Mon Sep 17 00:00:00 2001 From: Mahmoud Bentriou <mahmoud.bentriou@centralesupelec.fr> Date: Thu, 10 Dec 2020 20:11:22 +0100 Subject: [PATCH] small fix of cosmos result parser for memory used value --- core/utils.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/utils.jl b/core/utils.jl index 2656503..c2322e7 100644 --- a/core/utils.jl +++ b/core/utils.jl @@ -11,11 +11,12 @@ function cosmos_get_values(name_file::String) while !eof(output_file) line = readline(output_file) splitted_line = split(line, ':') - if (length(splitted_line) > 1) && tryparse(Float64, splitted_line[2]) !== nothing + str_val = split(splitted_line[2], ' ')[1] + if (length(splitted_line) > 1) && tryparse(Float64, str_val) !== nothing if !haskey(dict_values, splitted_line[1]) dict_values[splitted_line[1]] = zeros(0) end - push!(dict_values[splitted_line[1]], parse(Float64, splitted_line[2])) + push!(dict_values[splitted_line[1]], parse(Float64, str_val)) end end close(output_file) -- GitLab