diff --git a/gc/scheduler/scheduler.go b/gc/scheduler/scheduler.go index 3aa37b6e99c3..9f0926965b51 100644 --- a/gc/scheduler/scheduler.go +++ b/gc/scheduler/scheduler.go @@ -75,6 +75,10 @@ func (d *duration) UnmarshalText(text []byte) error { return nil } +func (d duration) MarshalText() (text []byte, err error) { + return []byte(time.Duration(d).String()), nil +} + func init() { plugin.Register(&plugin.Registration{ Type: plugin.GCPlugin,