Skip to content

Commit

Permalink
Fixes a default config bug of gc scheduler
Browse files Browse the repository at this point in the history
Signed-off-by: Yanqiang Miao <miao.yanqiang@zte.com.cn>
  • Loading branch information
Yanqiang Miao authored and dmcgowan committed Mar 22, 2018
1 parent d77d4ba commit 3d34cc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gc/scheduler/scheduler.go
Expand Up @@ -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,
Expand Down

0 comments on commit 3d34cc0

Please sign in to comment.