X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=main.cpp;h=80385fe57651b2098dd9b8a70ba0117b6148b5d9;hb=f43bf03174407b5fe6e9fb85d23480613fa3e1e4;hp=d11237caffb67f544a12097c7cd30e1a840b6868;hpb=0bba787e9c63f1c526997ca5c3f85df0efbd38ed;p=backups%2F.git diff --git a/main.cpp b/main.cpp index d11237c..80385fe 100644 --- a/main.cpp +++ b/main.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "filedata.hpp" @@ -30,7 +31,7 @@ template bool copy_until_full( I begin, I end, O out, INT &space ) { bool complete = true; - while( 0 != space && begin != end ) { + while( begin != end ) { INT size = (*begin)->getFileSize(); INT blocksize = blocks( size ) * bytes_in_block; @@ -252,17 +253,17 @@ int main() { cerr << now << endl << endl; cerr << "Need backing up..." << endl; - cerr << " Added Bytes: " << added_bytes << endl; - cerr << " Added Blocks: " << added_blocks << endl; - cerr << " Modified Bytes: " << modified_bytes << endl; - cerr << " Modified Blocks: " << modified_blocks << endl; - cerr << " Disks Remaining: " << disks_remaining << endl << endl; + cerr << " Added Bytes: " << added_bytes << endl; + cerr << " Added Blocks: " << added_blocks << endl; + cerr << " Modified Bytes: " << modified_bytes << endl; + cerr << " Modified Blocks: " << modified_blocks << endl; + cerr << " Disks Remaining: " << disks_remaining << endl << endl; cerr << "Will be backed up..." << endl; - cerr << " Essential Bytes: " << essential_bytes << endl; - cerr << " Essential Blocks: " << essential_blocks << endl; - cerr << " Total Bytes: " << total_bytes << endl; - cerr << " Total Blocks: " << total_blocks << endl << endl; + cerr << " Essential Bytes: " << essential_bytes << endl; + cerr << " Essential Blocks: " << essential_blocks << endl; + cerr << " Total Bytes: " << total_bytes << endl; + cerr << " Total Blocks: " << total_blocks << endl << endl; if( ! complete ) { cerr << "Backup is incomplete!" << endl; }