test-api: fix stat type

Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:
Kamil Gierszewski 2024-10-16 15:16:52 +02:00
parent e8b1c3ce81
commit 421c0e4641
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ class Cache:
def set_params_nhit(self, promotion_params_nhit: PromotionParametersNhit) -> Output: def set_params_nhit(self, promotion_params_nhit: PromotionParametersNhit) -> Output:
return casadm.set_param_promotion_nhit( return casadm.set_param_promotion_nhit(
self.cache_id, self.cache_id,
threshold=promotion_params_nhit.threshold.get_value(), threshold=promotion_params_nhit.threshold,
trigger=promotion_params_nhit.trigger trigger=promotion_params_nhit.trigger
) )

View File

@ -240,7 +240,7 @@ class SeqCutOffParameters:
class PromotionParametersNhit: class PromotionParametersNhit:
def __init__(self, threshold: Size = None, trigger: int = None): def __init__(self, threshold: int = None, trigger: int = None):
self.threshold = threshold self.threshold = threshold
self.trigger = trigger self.trigger = trigger