Index: trunk/Nebulous/Changes
===================================================================
--- trunk/Nebulous/Changes	(revision 17542)
+++ trunk/Nebulous/Changes	(revision 17547)
@@ -2,4 +2,5 @@
 
 0.09
+    - add a virtual "summary" volume to neb-df
     - fix neb-df coding issues
     - set default logging level to warn
Index: trunk/Nebulous/bin/neb-df
===================================================================
--- trunk/Nebulous/bin/neb-df	(revision 17542)
+++ trunk/Nebulous/bin/neb-df	(revision 17547)
@@ -3,5 +3,5 @@
 # Copyright (C) 2007  Joshua Hoblitt
 #
-# $Id: neb-df,v 1.5 2008-04-18 03:12:25 jhoblitt Exp $
+# $Id: neb-df,v 1.6 2008-05-07 00:33:18 jhoblitt Exp $
 
 use strict;
@@ -42,4 +42,6 @@
 print "Filesystem           1K-blocks      Used Available Use% Mounted on\n";
 
+my $total_total = 0;
+my $total_used  = 0;
 foreach my $row (@$stats) {
     my %vol;
@@ -49,5 +51,7 @@
     my $path        = $vol{path};
     my $total       = $vol{total};
+    $total_total    += $total;
     my $used        = $vol{used};
+    $total_used     += $used;
     my $available   = $total - $used;
     my $usedper     = ($used / $total) * 100; 
@@ -80,4 +84,21 @@
 }
 
+my $total_available   = $total_total - $total_used;
+my $total_usedper     = ($total_used / $total_total) * 100; 
+
+# summary
+printf ("%s\n%20s", "/summmary_of_all_volumes", "");
+printf(" %*s %*s %*s %*.0f%% %s\n",
+        9,
+        $total_total,
+        9,
+        $total_used,
+        9,
+        $total_available,
+        3,
+        $total_usedper,
+        "/total",
+    );
+
 __END__
 
