Skip to content

Commit 57c5cab

Browse files
authored
Merge pull request #526 from rtreffer/patch-1
Handle smart raw values >2^31
2 parents 9676f5f + d61fef8 commit 57c5cab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text_collector_examples/smartmon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $1 ~ /^[0-9]+$/ && $2 ~ /^[a-zA-Z0-9_-]+$/ {
1515
printf "%s_value{%s,smart_id=\"%s\"} %d\n", $2, labels, $1, $4
1616
printf "%s_worst{%s,smart_id=\"%s\"} %d\n", $2, labels, $1, $5
1717
printf "%s_threshold{%s,smart_id=\"%s\"} %d\n", $2, labels, $1, $6
18-
printf "%s_raw_value{%s,smart_id=\"%s\"} %d\n", $2, labels, $1, $10
18+
printf "%s_raw_value{%s,smart_id=\"%s\"} %e\n", $2, labels, $1, $10
1919
}
2020
SMARTCTLAWK
2121
)"

0 commit comments

Comments
 (0)