fix watchCmd interval
woops, not debugging anymore
This commit is contained in:
parent
aaac89fa3f
commit
d99e0da559
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ var watchBoxesCmd = &cobra.Command{
|
|||
Long: "specify box IDs to watch them for events",
|
||||
Args: BoxIdValidator,
|
||||
PreRun: func(cmd *cobra.Command, args []string) {
|
||||
ticker = time.NewTicker(time.Duration(watchInterval) * time.Second).C
|
||||
ticker = time.NewTicker(time.Duration(watchInterval) * time.Minute).C
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmd.SilenceUsage = true
|
||||
|
|
Loading…
Add table
Reference in a new issue