Fixed db time target objective

This commit is contained in:
dvanaken 2019-12-16 19:05:47 +01:00 committed by Dana Van Aken
parent 1cc7537b2a
commit 2a7bc6145f
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class DBTime(BaseTargetObjective):
improvement=LESS_IS_BETTER) improvement=LESS_IS_BETTER)
def compute(self, metrics, observation_time): 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 target_objective_list = tuple((DBMSType.ORACLE, target_obj) for target_obj in [ # pylint: disable=invalid-name