/[cricket]/parse_df.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 /parse_df.pl

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

revision 1.1 by dpavlin, Mon Jul 15 10:13:38 2002 UTC revision 1.2 by dpavlin, Mon Jul 15 10:26:21 2002 UTC
# Line 31  sub parse_df { Line 31  sub parse_df {
31                  if ($use_pcnt && $use_pcnt =~ s/(\d+)%/$1/) {                  if ($use_pcnt && $use_pcnt =~ s/(\d+)%/$1/) {
32                          print STDERR "$_\n";                          print STDERR "$_\n";
33  #                       $df{$mount}=$use_pcnt;  #                       $df{$mount}=$use_pcnt;
34                          $df{$mount}=$used * 100 / $total;                          $df{$mount}=$used * 100 / $total if ($total != 0);
35  #                       print $df{$mount}," == $use_pcnt\n";  #                       print $df{$mount}," == $use_pcnt\n";
36                  }                  }
37          }          }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26