]> www.vanbest.org Git - backupusage.git/commitdiff
Cleaning up
authorJan-Pascal van Best <janpascal@vanbest.org>
Mon, 29 Aug 2011 08:45:00 +0000 (10:45 +0200)
committerJan-Pascal van Best <janpascal@vanbest.org>
Mon, 29 Aug 2011 08:45:00 +0000 (10:45 +0200)
backupusage.cc
spacecounter.cc

index fd6844a22df474d3e72ae3eb1b3c69a63aa18b2b..d4596c06731eca0a5a96f3b36d5d7112546504fc 100644 (file)
@@ -1,9 +1,7 @@
 #include <string>
 #include <vector>
-#include <set>
 #include <map>
 #include <iostream>
-#include <sys/stat.h>
 #include <boost/filesystem.hpp>
 #include <boost/regex.hpp>
 #include <boost/format.hpp>
@@ -20,11 +18,6 @@ using namespace boost::algorithm;
 
 namespace po = boost::program_options;
 
-//set<ino_t> inodes;
-//map<path,long> dirs;
-
-// boost::regex prefix_re;
-
 string ToHumanReadable(long x)
 {
     //CONSTANTS FOR SIZING
index cec15b9ad9fe1ad97ac0c6a884eca8f3bccd4a64..c17519878b0d16c87323f84b17f15fa5e2d2af72 100644 (file)
@@ -43,7 +43,7 @@ void spacecounter::handle_file( const path& dir, const path& p ) {
 }
 
 void spacecounter::handle_dir( const path& dir ) {
-  cout << dir << endl;
+  // cout << dir << endl;
   if ( dirs.find(strip_path(dir)) == dirs.end() ) {
     dirs[strip_path(dir)] = 0;
   }