Changeset 34923 for trunk/Nebulous/bin/neb-df
- Timestamp:
- Jan 14, 2013, 4:15:30 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/bin/neb-df (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/bin/neb-df
r31413 r34923 53 53 my $path = $vol{host}; 54 54 if ($names) { 55 $path = $vol{name};55 $path = $vol{name}; 56 56 } 57 57 … … 61 61 $total_used += $used; 62 62 my $available = $total - $used; 63 my $usedper = ($used / $total) * 100;63 my $usedper = ($used / ($total+1)) * 100; 64 64 my $mountpoint = $vol{mountpoint}; 65 65 66 66 if ($vol{allocate} == 1) { 67 $allocated_total += $total;68 $allocated_used += $used;67 $allocated_total += $total; 68 $allocated_used += $used; 69 69 } 70 70 # indicated the part of the nebulous volume name that matches up with a 71 # local volume (mountpoint) 71 # local volume (mountpoint) 72 72 #$path =~ s/$mountpoint/[$mountpoint]/; 73 73 … … 95 95 96 96 my $total_available = $total_total - $total_used; 97 my $total_usedper = ($total_used / $total_total) * 100; 97 my $total_usedper = ($total_used / $total_total) * 100; 98 98 99 99 # summary … … 112 112 113 113 my $allocated_available = $allocated_total - $allocated_used; 114 my $allocated_usedper = ($allocated_used / $allocated_total) * 100; 114 my $allocated_usedper = ($allocated_used / $allocated_total) * 100; 115 115 116 116 # summary … … 188 188 =item * C<NEB_PASS> 189 189 190 Equivalent to --pass|-p 190 Equivalent to --pass|-p 191 191 192 192 =back
Note:
See TracChangeset
for help on using the changeset viewer.
