lang, test, examples: lang: Use new syntax for structlookup

Sugar makes the world go round.
This commit is contained in:
James Shubin
2023-11-04 14:52:19 -04:00
parent 233625db20
commit 6cc5adcd25
10 changed files with 23 additions and 23 deletions

View File

@@ -7,7 +7,7 @@ file "/tmp/mgmt/systemload" {
$tmplvalues = struct{load => $theload, threshold => $threshold,}
$theload = structlookup(sys.load(), "x1")
$theload = sys.load()->x1
$threshold = 1.5 # change me if you like
# simple hysteresis implementation