Fixed db time target objective
This commit is contained in:
parent
1cc7537b2a
commit
2a7bc6145f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue