chore: qps flag: use float32 instead of float64

This commit is contained in:
googs1025
2024-11-06 13:09:20 +08:00
parent 17dcc94418
commit 0d756b78fc
2 changed files with 4 additions and 4 deletions
@@ -74,7 +74,7 @@ func NewClientOrDie(npdo *options.NodeProblemDetectorOptions) Client {
}
cfg.UserAgent = fmt.Sprintf("%s/%s", filepath.Base(os.Args[0]), version.Version())
cfg.QPS = float32(npdo.QPS)
cfg.QPS = npdo.QPS
cfg.Burst = npdo.Burst
c.client = clientset.NewForConfigOrDie(cfg).CoreV1()
c.nodeName = npdo.NodeName