]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
bin/temperature.pl: Display degree symbol.
authorSimon Ruderich <simon@ruderich.org>
Thu, 24 Oct 2013 00:28:19 +0000 (02:28 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 24 Oct 2013 00:28:19 +0000 (02:28 +0200)
bin/temperature.pl

index 6971f5f5fa2cac2c3b3cdcc5976c4d0d510358e9..42eaffe666eb0fe4fa1caf5f4f4ec45f2d11b9a8 100755 (executable)
@@ -56,6 +56,8 @@ close $file or die $!;
 my $value = int($temperature / 1000);
 my $risk  = ($critical - $temperature)/$critical;
 
+$value .= "\xb0"; # degree symbol in UTF-8
+
 # GNU screen mode with colors.
 if ($screen_mode) {
     my $color;