swagger: fix MemTotal units in SystemInfo endpoint
MemTotal represents bytes, not kilobytes. See Linux[1] and Windows[2] implementations. [1]:f50a40e889/pkg/system/meminfo_linux.go (L49)
[2]:f50a40e889/pkg/system/meminfo_windows.go (L40)
Signed-off-by: Nikolay Edigaryev <edigaryev@gmail.com> (cherry picked from commit13e0ba700a
) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
88820a4793
commit
a4e96a486f
10 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue