mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
fix incorrect config conditions
This commit is contained in:
parent
01102cb9b0
commit
06f24e988f
@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
func RegisterUpdateDurationWorker() {
|
func RegisterUpdateDurationWorker() {
|
||||||
var frequency string
|
var frequency string
|
||||||
if config.Keys.CronFrequency.DurationWorker != "" {
|
if config.Keys.CronFrequency != nil && config.Keys.CronFrequency.DurationWorker != "" {
|
||||||
frequency = config.Keys.CronFrequency.DurationWorker
|
frequency = config.Keys.CronFrequency.DurationWorker
|
||||||
} else {
|
} else {
|
||||||
frequency = "5m"
|
frequency = "5m"
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
|
|
||||||
func RegisterFootprintWorker() {
|
func RegisterFootprintWorker() {
|
||||||
var frequency string
|
var frequency string
|
||||||
if config.Keys.CronFrequency.FootprintWorker != "" {
|
if config.Keys.CronFrequency != nil && config.Keys.CronFrequency.FootprintWorker != "" {
|
||||||
frequency = config.Keys.CronFrequency.FootprintWorker
|
frequency = config.Keys.CronFrequency.FootprintWorker
|
||||||
} else {
|
} else {
|
||||||
frequency = "10m"
|
frequency = "10m"
|
||||||
|
Loading…
Reference in New Issue
Block a user