/[scripts]/trunk/dwm-status.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/dwm-status.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 115 by dpavlin, Fri Jun 19 14:40:14 2009 UTC revision 134 by dpavlin, Mon Mar 29 21:34:11 2010 UTC
# Line 16  my $acpi_every = 10; Line 16  my $acpi_every = 10;
16  my $disk_blk_size = 512;  my $disk_blk_size = 512;
17    
18  my $debug = shift @ARGV;  my $debug = shift @ARGV;
19  my $awesome = 3;  my $awesome = 0;
20    
21  $|=1;  $|=1;
22    
# Line 187  while ( 1 ) { Line 187  while ( 1 ) {
187          my $d_write = ( $d_w - $ld_w ) / $dt;          my $d_write = ( $d_w - $ld_w ) / $dt;
188          ( $ld_r, $ld_w ) = ( $d_r, $d_w );          ( $ld_r, $ld_w ) = ( $d_r, $d_w );
189    
190          my $out = sprintf("%s | %s |%5s D %-5s|%5s > %-5s| %s%s",          my $out = sprintf("%s |%5s D %-5s|%5s > %-5s| %s%s | %s",
                 $s,  
191                  $load,                  $load,
192                  unit( $d_read ), unit( $d_write ),                  unit( $d_read ), unit( $d_write ),
193                  unit( $net_rx ), unit( $net_tx ),                  unit( $net_rx ), unit( $net_tx ),
194                  $bat, $temp,                  $bat, $temp,
195                    $s,
196          );          );
197    
198          print "$out\n";          print "$out\n";

Legend:
Removed from v.115  
changed lines
  Added in v.134

  ViewVC Help
Powered by ViewVC 1.1.26