@@ -14,7 +14,7 @@ import (
14
14
15
15
func (* RootCmd ) stat () * clibase.Cmd {
16
16
fs := afero .NewReadOnlyFs (afero .NewOsFs ())
17
- defaultCols := []string {"host_cpu" , "host_memory" , "home_disk" , "uptime" }
17
+ defaultCols := []string {"host_cpu" , "host_memory" , "home_disk" }
18
18
if ok , err := clistat .IsContainerized (fs ); err == nil && ok {
19
19
// If running in a container, we assume that users want to see these first. Prepend.
20
20
defaultCols = append ([]string {"container_cpu" , "container_memory" }, defaultCols ... )
@@ -68,13 +68,6 @@ func (*RootCmd) stat() *clibase.Cmd {
68
68
}
69
69
sr .Disk = ds
70
70
71
- // Uptime is calculated either based on the host or the container, depending.
72
- us , err := st .Uptime ()
73
- if err != nil {
74
- return err
75
- }
76
- sr .Uptime = us
77
-
78
71
// Container-only stats.
79
72
if ok , err := clistat .IsContainerized (fs ); err == nil && ok {
80
73
cs , err := st .ContainerCPU ()
@@ -108,5 +101,4 @@ type statsRow struct {
108
101
Disk * clistat.Result `json:"home_disk" table:"home_disk"`
109
102
ContainerCPU * clistat.Result `json:"container_cpu" table:"container_cpu"`
110
103
ContainerMemory * clistat.Result `json:"container_memory" table:"container_memory"`
111
- Uptime * clistat.Result `json:"uptime" table:"uptime"`
112
104
}
0 commit comments