Explorar el Código

update PUBLISH_METRIC_INTERVAL env name

Max Ma hace 1 año
padre
commit
7dee02e811
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      servercfg/serverconf.go

+ 2 - 2
servercfg/serverconf.go

@@ -591,8 +591,8 @@ func GetMqUserName() string {
 func GetMetricInterval() string {
 	//default 15 minutes
 	mi := "15"
-	if os.Getenv("metric_interval") != "" {
-		mi = os.Getenv("metric_interval")
+	if os.Getenv("PUBLISH_METRIC_INTERVAL") != "" {
+		mi = os.Getenv("PUBLISH_METRIC_INTERVAL")
 	}
 	return mi
 }