Skip to content

Commit

Permalink
linux/sensors_: encode as UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
kenyon committed May 10, 2012
1 parent d91abb6 commit 898db16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/node.d.linux/sensors_.in
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ my %config = (
(?:\.\d+)?)# Zero or one match of '.' char followd by one or more
# digits. '?:' means it doesn't spit out the field.
\s] # Match degree char or space char
\s] # Match degree char or space char
C # Match 'C' char
(?: # >>>>Match the following statement zero or one time.
Expand All @@ -152,7 +152,7 @@ my %config = (
(?:\.\d+)?)# Zero or one match of '.' char followd by one or more
# digits. '?:' means it doesn't spit out the field.
\s] # Match degree char or space char
\s] # Match degree char or space char
C,\s* # 'C,' string followd by zero or more spaces
hyst # 'hyst' string followed by
(?:eresis)?# zero or one 'eresis' string.
Expand All @@ -164,7 +164,7 @@ my %config = (
# (Match hyst value as \$4) followed by
(?:\.\d+)?)# Zero or one match of '.' char followd by one or more
# digits. '?:' means it doesn't spit out the field.
\s]C # Match degree char or space char, and then 'C' char
\s]C # Match degree char or space char, and then 'C' char
\) # ')' char
)? # >>>>end of statement
/xm,
Expand Down Expand Up @@ -240,7 +240,7 @@ if ( defined $ARGV[0] and $ARGV[0] eq 'autoconf' ) {
exit 0;
}

unless ($text =~ /[° ]C/) {
unless ($text =~ /[° ]C/) {
print "no (no temperature readings)\n";
exit 0;
}
Expand Down

0 comments on commit 898db16

Please sign in to comment.