From a4e96a486f32b3f13953510e479f33c32e27326a Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Thu, 10 Sep 2020 14:34:00 +0300 Subject: swagger: fix MemTotal units in SystemInfo endpoint MemTotal represents bytes, not kilobytes. See Linux[1] and Windows[2] implementations. [1]: https://github.com/moby/moby/blob/f50a40e889fdaeebf14fce1d494f95e60092d21d/pkg/system/meminfo_linux.go#L49 [2]: https://github.com/moby/moby/blob/f50a40e889fdaeebf14fce1d494f95e60092d21d/pkg/system/meminfo_windows.go#L40 Signed-off-by: Nikolay Edigaryev (cherry picked from commit 13e0ba700ad53e6c97e91c8775376a7eff175555) Signed-off-by: Sebastiaan van Stijn --- api/swagger.yaml | 2 +- docs/api/v1.32.yaml | 2 +- docs/api/v1.33.yaml | 2 +- docs/api/v1.34.yaml | 2 +- docs/api/v1.35.yaml | 2 +- docs/api/v1.36.yaml | 2 +- docs/api/v1.37.yaml | 2 +- docs/api/v1.38.yaml | 2 +- docs/api/v1.39.yaml | 2 +- docs/api/v1.40.yaml | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 8ed0b884a1..70b09a0e3b 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -4467,7 +4467,7 @@ definitions: example: 4 MemTotal: description: | - Total amount of physical memory available on the host, in kilobytes (kB). + Total amount of physical memory available on the host, in bytes. type: "integer" format: "int64" example: 2095882240 diff --git a/docs/api/v1.32.yaml b/docs/api/v1.32.yaml index 0c9ee9515a..770f9890f6 100644 --- a/docs/api/v1.32.yaml +++ b/docs/api/v1.32.yaml @@ -3599,7 +3599,7 @@ definitions: example: 4 MemTotal: description: | - Total amount of physical memory available on the host, in kilobytes (kB). + Total amount of physical memory available on the host, in bytes. type: "integer" format: "int64" example: 2095882240 diff --git a/docs/api/v1.33.yaml b/docs/api/v1.33.yaml index afec91e72a..af4acdd47b 100644 --- a/docs/api/v1.33.yaml +++ b/docs/api/v1.33.yaml @@ -3604,7 +3604,7 @@ definitions: example: 4 MemTotal: description: | - Total amount of physical memory available on the host, in kilobytes (kB). + Total amount of physical memory available on the host, in bytes. type: "integer" format: "int64" example: 2095882240 diff --git a/docs/api/v1.34.yaml b/docs/api/v1.34.yaml index 80319ae7f3..8e65d92367 100644 --- a/docs/api/v1.34.yaml +++ b/docs/api/v1.34.yaml @@ -3633,7 +3633,7 @@ definitions: example: 4 MemTotal: description: | - Total amount of physical memory available on the host, in kilobytes (kB). + Total amount of physical memory available on the host, in bytes. type: "integer" format: "int64" example: 2095882240 diff --git a/docs/api/v1.35.yaml b/docs/api/v1.35.yaml index b1533f6b71..d28bfd3da0 100644 --- a/docs/api/v1.35.yaml +++ b/docs/api/v1.35.yaml @@ -3615,7 +3615,7 @@ definitions: example: 4 MemTotal: description: | - Total amount of physical memory available on the host, in kilobytes (kB). + Total amount of physical memory available on the host, in bytes. type: "integer" format: "int64" example: 2095882240 diff --git a/docs/api/v1.36.yaml b/docs/api/v1.36.yaml index 8ff7415d62..d0c879f8fd 100644 --- a/docs/api/v1.36.yaml +++ b/docs/api/v1.36.yaml @@ -3628,7 +3628,7 @@ definitions: example: 4 MemTotal: description: | - Total amount of physical memory available on the host, in kilobytes (kB). + Total amount of physical memory available on the host, in bytes. type: "integer" format: "int64" example: 2095882240 diff --git a/docs/api/v1.37.yaml b/docs/api/v1.37.yaml index 2124a816b1..10f9964631 100644 --- a/docs/api/v1.37.yaml +++ b/docs/api/v1.37.yaml @@ -3648,7 +3648,7 @@ definitions: example: 4 MemTotal: description: | - Total amount of physical memory available on the host, in kilobytes (kB). + Total amount of physical memory available on the host, in bytes. type: "integer" format: "int64" example: 2095882240 diff --git a/docs/api/v1.38.yaml b/docs/api/v1.38.yaml index 86374415fd..4cd1e49c84 100644 --- a/docs/api/v1.38.yaml +++ b/docs/api/v1.38.yaml @@ -3702,7 +3702,7 @@ definitions: example: 4 MemTotal: description: | - Total amount of physical memory available on the host, in kilobytes (kB). + Total amount of physical memory available on the host, in bytes. type: "integer" format: "int64" example: 2095882240 diff --git a/docs/api/v1.39.yaml b/docs/api/v1.39.yaml index 74c295ba8a..5fa201d479 100644 --- a/docs/api/v1.39.yaml +++ b/docs/api/v1.39.yaml @@ -4345,7 +4345,7 @@ definitions: example: 4 MemTotal: description: | - Total amount of physical memory available on the host, in kilobytes (kB). + Total amount of physical memory available on the host, in bytes. type: "integer" format: "int64" example: 2095882240 diff --git a/docs/api/v1.40.yaml b/docs/api/v1.40.yaml index 8ed0b884a1..70b09a0e3b 100644 --- a/docs/api/v1.40.yaml +++ b/docs/api/v1.40.yaml @@ -4467,7 +4467,7 @@ definitions: example: 4 MemTotal: description: | - Total amount of physical memory available on the host, in kilobytes (kB). + Total amount of physical memory available on the host, in bytes. type: "integer" format: "int64" example: 2095882240 -- cgit v1.2.1