}
}
-printf "%-20s %-15s %-10s\n","ZFS Filesystem","Snapshots Size","Num Snapshots";
-printf "%-20s %-15s %-10s\n","--","--","--";
-foreach $key (keys %totals)
+printf "%-30s %-15s %-10s\n","ZFS Filesystem","Snapshots Size","Num Snapshots";
+printf "%-30s %-15s %-10s\n","--","--","--";
+foreach $key (sort keys %totals)
{
$size = $totals{$key}{size};
$total_size += $size;
$total_snapshots += $totals{$key}{snapshots};
$size = &adjust_size($size);
- printf "%-20s %-15s %-10s\n", $key, $size, $totals{$key}{snapshots};
+ printf "%-30s %-15s %-10s\n", $key, $size, $totals{$key}{snapshots};
}
$total_size = &adjust_size($total_size);
-printf "%-20s %-15s %-10s\n","--","--","--";
-printf "%-20s %-15s %-10s\n","Total Snapshots",$total_size,$total_snapshots;
+printf "%-30s %-15s %-10s\n","--","--","--";
+printf "%-30s %-15s %-10s\n","Total Snapshots",$total_size,$total_snapshots;