- xbt_assert(std::isfinite(flops_amount[i]), "flops_amount[%d] is not finite!", i);
- for (j = 0 ; j < host_nb ; ++j) {
+ xbt_assert(std::isfinite(flops_amount[i]), "flops_amount[%d] is not finite!", i);
+ if (bytes_amount != NULL) {
+ for (j = 0 ; j < host_nb ; ++j) {