From 1f0cb94603e4eecb76d7e7cefa9a832f04dc48e6 Mon Sep 17 00:00:00 2001 From: Mael Madon Date: Thu, 16 Sep 2021 11:57:28 +0200 Subject: [PATCH 1/1] correct computation time after changing pstate. Fix issue #95 --- 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 bd0f778b49..60f1625ff6 100644 --- a/src/surf/ptask_L07.cpp +++ b/src/surf/ptask_L07.cpp @@ -284,7 +284,7 @@ void CpuL07::on_speed_change() { const lmm::Element* elem = nullptr; - get_model()->get_maxmin_system()->update_constraint_bound(get_constraint(), speed_.peak * speed_.scale); + get_model()->get_maxmin_system()->update_constraint_bound(get_constraint(), get_core_count() * speed_.peak * speed_.scale); while (const auto* var = get_constraint()->get_variable(&elem)) { const Action* action = var->get_id(); -- 2.20.1