Skip to content

Commit

Permalink
refactor: Docker Plugin - Remove legacy comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RazCrimson committed Nov 27, 2021
1 parent 4a053b8 commit 14caec0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions glances/plugins/glances_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,6 @@ def get_docker_cpu(self, container_id, all_stats):
"""
cpu_stats = {'total': 0.0}

# Read the stats
# For each container, you will find a pseudo-file cpuacct.stat,
# containing the CPU usage accumulated by the processes of the container.
# Those times are expressed in ticks of 1/USER_HZ of a second.
# On x86 systems, USER_HZ is 100.

try:
cpu = {
'system': all_stats['cpu_stats']['system_cpu_usage'],
Expand Down

0 comments on commit 14caec0

Please sign in to comment.