test(pkg/storage): add test for compression and rounding

This commit is contained in:
2019-10-11 12:36:00 +02:00
parent 86f598bc7d
commit 25dd99cd3d
68 changed files with 7713 additions and 1481 deletions

View File

@ -7,8 +7,8 @@ import (
"github.com/Masterminds/semver"
"github.com/go-flucky/flucky/pkg/config"
"github.com/go-flucky/flucky/pkg/daemon"
"github.com/volker-raschek/go-logger/pkg/logger"
"github.com/spf13/cobra"
"github.com/volker-raschek/go-logger/pkg/logger"
)
var (
@ -50,5 +50,5 @@ func InitCmd(cmd *cobra.Command, cnfFile *string, sversion *semver.Version) {
cmd.AddCommand(daemonCmd)
daemonCmd.Flags().BoolVar(&compression, "compression", true, "Compress measured values")
daemonCmd.Flags().StringVar(&cleanCacheInterval, "clean-cache-interval", "5m", "Minute intervall to clean cache and write measured values into logfile")
daemonCmd.Flags().Float64Var(&round, "round", 0.5, "Round values. The value 0 deactivates the function")
daemonCmd.Flags().Float64Var(&round, "round", 0, "Round values. The value 0 deactivates the function")
}