Permalink
Browse files

Fixed for Linux

  • Loading branch information...
1 parent 2d0f83d commit cae7e868ea963f0ca26977acb1321e743d03297c @creaktive committed Oct 21, 2013
Showing with 4 additions and 3 deletions.
  1. +2 −1 rainbarf
  2. +2 −2 t/01-tmux.t
View
@@ -318,8 +318,9 @@ sub memory {
close $meminfo;
$m{c} -= delete $m{sc};
delete $m{c} if $m{c} < 0;
+ my $x = delete($m{st}) - delete($m{sf});
$m{w} = delete($m{t}) - sum values %m;
- $m{x} = delete($m{st}) - delete($m{sf});
+ $m{x} = $x;
} elsif (-x q{/usr/bin/vm_stat}) {
# fallback
%m = map {
View
@@ -27,7 +27,7 @@ my $color_reset = qr{
\]
}x;
my $chart = qr{
- [\x{2581}-\x{2588}]+
+ [\x{2581}-\x{2588}]*
}x;
for my $i (1 .. $n) {
@@ -52,7 +52,7 @@ for my $i (1 .. $n) {
(?:
$color_set
$chart
- ) {2,5}
+ ) {2,6}
$color_reset
$
}msx,

0 comments on commit cae7e86

Please sign in to comment.