diff options
| author | Jeff Carr <[email protected]> | 2024-11-01 08:45:52 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-01 08:45:52 -0500 |
| commit | 1a72fdceef64e6cba22db71e3383e85a112862dc (patch) | |
| tree | 8b67f1ac3e9c90ff9ee5cc96f3c91f3021873c22 /human.go | |
| parent | f36c19f04ff4eb2cf0ad23ff557903f952ca9719 (diff) | |
set preferred hypervisor
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'human.go')
| -rw-r--r-- | human.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -110,11 +110,10 @@ func FormatDuration(d time.Duration) string { } func (d *Droplet) SprintHeader() string { - header := fmt.Sprintf("%-3.3s %-9.9s %-20.20s", d.Current.State, d.Current.Hypervisor, d.Hostname) - if d.Current == nil { d.Current = new(Current) } + header := fmt.Sprintf("%-3.3s %-9.9s %-20.20s", d.Current.State, d.Current.Hypervisor, d.Hostname) switch d.Current.State { case DropletState_ON: |
