Skip to content

Commit

Permalink
Specify unit in duration
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Feb 24, 2021
1 parent 8be838f commit 3625d6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cbox/publicshare/sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (c *config) init() {
}

func (m *manager) startJanitorRun() {
ticker := time.NewTicker(time.Duration(m.c.JanitorRunInterval))
ticker := time.NewTicker(time.Duration(m.c.JanitorRunInterval) * time.Second)
work := make(chan os.Signal, 1)
signal.Notify(work, syscall.SIGHUP, syscall.SIGINT, syscall.SIGQUIT)

Expand Down
2 changes: 1 addition & 1 deletion pkg/publicshare/manager/json/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ type manager struct {
}

func (m *manager) startJanitorRun() {
ticker := time.NewTicker(time.Duration(m.janitorRunInterval))
ticker := time.NewTicker(time.Duration(m.janitorRunInterval) * time.Second)
work := make(chan os.Signal, 1)
signal.Notify(work, syscall.SIGHUP, syscall.SIGINT, syscall.SIGQUIT)

Expand Down

0 comments on commit 3625d6f

Please sign in to comment.