state: round printed uptime to the second
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
parent
61628dabb7
commit
ced31a7257
|
@ -98,7 +98,7 @@ func (s *simpleStore) mustPrintLauncherState(w **tabwriter.Writer, now time.Time
|
|||
|
||||
if !verbose.Get() {
|
||||
_, _ = fmt.Fprintf(*w, "\t%s\t%d\t%s\t%s\t%s\t%s\n",
|
||||
s.path[len(s.path)-1], state.PID, now.Sub(state.Time).String(), strings.TrimPrefix(ets.String(), ", "), state.Launcher,
|
||||
s.path[len(s.path)-1], state.PID, now.Sub(state.Time).Round(time.Second).String(), strings.TrimPrefix(ets.String(), ", "), state.Launcher,
|
||||
state.Command)
|
||||
} else {
|
||||
// emit argv instead when verbose
|
||||
|
|
Loading…
Reference in New Issue