From 5ae237c9c6a73a3efb1b48cc19ced42e0b4e6752 Mon Sep 17 00:00:00 2001 From: degomme Date: Wed, 6 Mar 2019 15:56:25 +0100 Subject: [PATCH 1/1] Try to help sonar. --- src/surf/ptask_L07.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = -- 2.20.1