fix watchCmd interval

woops, not debugging anymore
This commit is contained in:
noerw 2018-06-24 23:15:15 +02:00
parent aaac89fa3f
commit d99e0da559

View file

@ -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