Skip to content

Commit

Permalink
fixing unsupported syntax in py2.6 (#3288)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 authored Jan 7, 2025
1 parent f1e35fd commit e7d1df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurelinuxagent/ga/cgroupconfigurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def _get_current_cpu_quota(unit_name):

# Calculate CPU percentage
cpu_percentage = (cpu_quota_us / 1000000) * 100
return "{:g}%".format(cpu_percentage) # :g Removes trailing zeros after decimal point
return "{0:g}%".format(cpu_percentage) # :g Removes trailing zeros after decimal point
except Exception as e:
log_cgroup_warning("Error parsing current CPUQuotaPerSecUSec: {0}".format(ustr(e)))
return "unknown"
Expand Down

0 comments on commit e7d1df1

Please sign in to comment.