Skip to content

Commit

Permalink
svc do some optimze
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjiangyu-ghca committed Jun 17, 2022
1 parent 40b771f commit c450802
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions delfin/drivers/ibm/storwize_svc/ssh_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,12 +826,7 @@ def count_metric_data(last_data, now_data, interval, target, metric_type,

@staticmethod
def count_difference(now_value, last_value):
value = 0
if now_value >= last_value:
value = now_value - last_value
else:
value = now_value
return value
return now_value if now_value < last_value else now_value - last_value

@staticmethod
def handle_volume_cach_hit(now_data, last_data):
Expand Down

0 comments on commit c450802

Please sign in to comment.