X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/72d32c4e88a57f4786f62fec48a1bfa454adbff9..b2852b7c61948f495d7437ffaa7fd9aced12849c:/src/kernel/resource/Action.cpp diff --git a/src/kernel/resource/Action.cpp b/src/kernel/resource/Action.cpp index 6920fd7d86..9651cde842 100644 --- a/src/kernel/resource/Action.cpp +++ b/src/kernel/resource/Action.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -7,7 +7,7 @@ #include "simgrid/kernel/resource/Model.hpp" #include "src/kernel/EngineImpl.hpp" #include "src/kernel/lmm/maxmin.hpp" -#include "src/surf/surf_interface.hpp" +#include "src/simgrid/math_utils.h" XBT_LOG_NEW_CATEGORY(kernel, "SimGrid internals"); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(ker_resource, kernel, "Resources, modeling the platform performance"); @@ -194,12 +194,12 @@ double Action::get_remains() void Action::update_max_duration(double delta) { if (max_duration_ != NO_MAX_DURATION) - double_update(&max_duration_, delta, sg_surf_precision); + double_update(&max_duration_, delta, sg_precision_timing); } void Action::update_remains(double delta) { - double_update(&remains_, delta, sg_maxmin_precision * sg_surf_precision); + double_update(&remains_, delta, sg_precision_workamount * sg_precision_timing); } void Action::set_last_update()