-/* Copyright (c) 2007-2018. The SimGrid Team.
+/* Copyright (c) 2007-2019. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include "simgrid/s4u.hpp"
#include "simgrid/plugins/energy.h"
#include "simgrid/s4u/VirtualMachine.hpp"
+#include <cmath>
XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this msg example");
static void run_test_process(std::string name, simgrid::s4u::Host *location, int size)
{
std::vector<std::string> arg = {std::to_string(size)};
- simgrid::s4u::Actor::create(name, location, computation_fun, arg);
+ simgrid::s4u::Actor::create(std::move(name), location, computation_fun, arg);
}
static void test_energy_consumption(std::string name, int nb_cores)
new_energy += sg_host_get_consumed_energy(pm);
}
- double energy_gap = new_energy - energy;
double expected_consumption = 0.1 * nb_cores;
double actual_consumption = new_energy - energy;