From: degomme Date: Wed, 6 Mar 2019 14:56:25 +0000 (+0100) Subject: Try to help sonar. X-Git-Tag: v3_22~165 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5ae237c9c6a73a3efb1b48cc19ced42e0b4e6752?hp=a6000ad7bbc454d82a7802443dcf55d755baf058 Try to help sonar. --- diff --git a/src/surf/ptask_L07.cpp b/src/surf/ptask_L07.cpp index f49ad5ee4d..8cea923b87 100644 --- a/src/surf/ptask_L07.cpp +++ b/src/surf/ptask_L07.cpp @@ -258,7 +258,7 @@ kernel::resource::Action* CpuL07::execution_start(double size) { std::vector host_list = {get_host()}; - double* flops_amount = new double[1](); + double* flops_amount = new double[host_list.size()](); flops_amount[0] = size; kernel::resource::Action* res =