Skip to content

Commit a911fac

Browse files
author
Fernando Ojeda
committed
Refactor usage vs information.
1 parent 23d8188 commit a911fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoftLayer/CLI/virt/usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def cli(env, identifier, start_date, end_date, valid_type, summary_period):
4242
counter = counter + float(data['counter'])
4343
count = count + 1
4444

45-
if type == "MEMORY_USAGE":
45+
if valid_type == "MEMORY_USAGE":
4646
average = (counter / count) / 2 ** 30
4747
else:
4848
average = counter / count

0 commit comments

Comments
 (0)