From 2a7bc6145f828a05870c74113414be5afe46d4ed Mon Sep 17 00:00:00 2001 From: dvanaken Date: Mon, 16 Dec 2019 19:05:47 +0100 Subject: [PATCH] Fixed db time target objective --- server/website/website/db/oracle/target_objective.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/website/website/db/oracle/target_objective.py b/server/website/website/db/oracle/target_objective.py index af2559f..553aa3d 100644 --- a/server/website/website/db/oracle/target_objective.py +++ b/server/website/website/db/oracle/target_objective.py @@ -15,7 +15,7 @@ class DBTime(BaseTargetObjective): improvement=LESS_IS_BETTER) def compute(self, metrics, observation_time): - return float(metrics['global.sys_time_model.db time']) + return float(metrics['global.sys_time_model.db time']) / observation_time target_objective_list = tuple((DBMSType.ORACLE, target_obj) for target_obj in [ # pylint: disable=invalid-name