/[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 32 by dpavlin, Sun May 27 08:39:20 2007 UTC revision 33 by dpavlin, Sun May 27 08:41:53 2007 UTC
# Line 46  sub unit { Line 46  sub unit {
46    
47          if ( $v >= 1 ) {          if ( $v >= 1 ) {
48                  return sprintf("%d%s/s", $v, $units[$o]);                  return sprintf("%d%s/s", $v, $units[$o]);
49            } elsif ( $v == 0 ) {
50                    return '';
51          } else {          } else {
52                  return sprintf("%.1f%s/s", $v, $units[$o]);                  return sprintf("%.1f%s/s", $v, $units[$o]);
53          }          }

Legend:
Removed from v.32  
changed lines
  Added in v.33

  ViewVC Help
Powered by ViewVC 1.1.26