mirror of
https://github.com/hamburghammer/gstat.git
synced 2024-09-28 23:26:05 +02:00
Augusto Dwenger J
f004c93773
This implementation still isn't perfect. One of the encoutered problems is that it does not omit Memory sturcts that are technicly empty. Resulting in JSON with empty objects. This should be a problem for other parsers but it doesn't look good.
7 lines
150 B
Go
7 lines
150 B
Go
package commands
|
|
|
|
// Memory usage representation.
|
|
type Memory struct {
|
|
Used uint64 `json:"used,omitempty"`
|
|
Total uint64 `json:"total,omitempty"`
|
|
}
|