1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Highlight meaning of 'precpu' (i.e. 'previous').

Signed-off-by: AJ Bowen <aj@soulshake.net>
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
AJ Bowen 2017-11-05 10:12:34 -08:00 committed by Sebastiaan van Stijn
parent d37f5c6bdf
commit b7fe0b6359
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
7 changed files with 9 additions and 9 deletions

View file

@ -5095,9 +5095,9 @@ paths:
This endpoint returns a live stream of a containers resource usage This endpoint returns a live stream of a containers resource usage
statistics. statistics.
The `precpu_stats` is the CPU statistic of last read, which is used The `precpu_stats` is the CPU statistic of the *previous* read, and is
for calculating the CPU usage percentage. It is not the same as the used to calculate the CPU usage percentage. It is not an exact copy
`cpu_stats` field. of the `cpu_stats` field.
If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is
nil then for compatibility with older daemons the length of the nil then for compatibility with older daemons the length of the

View file

@ -739,7 +739,7 @@ This endpoint returns a live stream of a container's resource usage statistics.
} }
} }
The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field.
**Query parameters**: **Query parameters**:

View file

@ -748,7 +748,7 @@ This endpoint returns a live stream of a container's resource usage statistics.
} }
} }
The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field.
**Query parameters**: **Query parameters**:

View file

@ -829,7 +829,7 @@ This endpoint returns a live stream of a container's resource usage statistics.
} }
} }
The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field.
**Query parameters**: **Query parameters**:

View file

@ -957,7 +957,7 @@ This endpoint returns a live stream of a container's resource usage statistics.
} }
} }
The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field.
**Query parameters**: **Query parameters**:

View file

@ -986,7 +986,7 @@ This endpoint returns a live stream of a container's resource usage statistics.
} }
} }
The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field.
**Query parameters**: **Query parameters**:

View file

@ -1036,7 +1036,7 @@ This endpoint returns a live stream of a container's resource usage statistics.
} }
} }
The `precpu_stats` is the cpu statistic of last read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field. The `precpu_stats` is the cpu statistic of *previous* read, which is used for calculating the cpu usage percent. It is not the exact copy of the `cpu_stats` field.
**Query parameters**: **Query parameters**: