fix watchCmd interval

woops, not debugging anymore
develop v1.0.4
noerw 6 years ago
parent aaac89fa3f
commit d99e0da559

@ -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…
Cancel
Save