Skip to content

Commit

Permalink
rename config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharkboy-j committed Dec 4, 2024
1 parent d17f0f8 commit 302a64a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ oids:
- oid: "1.3.6.1.4.1.935.10.1.1.2" # upsESystemSummary
- oid: "1.3.6.1.4.1.935.10.1.1.3" # upsEBatterySystem

toNullIfEmpty: #only for int
toNullIfBelowZero: #only for numbers
- tne: "upsESystemInputVoltage"
- tne: "upsESystemOutputLoad"
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type Config struct {
} `yaml:"oids"`
Tnies []struct {
Tnie string `yaml:"tne"`
} `yaml:"toNullIfEmpty"`
} `yaml:"toNullIfBelowZero"`
}

func loadConfig(filename string) (*Config, error) {
Expand Down

0 comments on commit 302a64a

Please sign in to comment.