X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=main.cpp;h=80385fe57651b2098dd9b8a70ba0117b6148b5d9;hb=68855587b49621cbf23afa79463a0bbc302b3a06;hp=638f15f7441245e18474bb6507fe3c8911c791bc;hpb=4d43b38a139fcc3ef784f7fe3cab00019f679b54;p=backups%2F.git diff --git a/main.cpp b/main.cpp index 638f15f..80385fe 100644 --- a/main.cpp +++ b/main.cpp @@ -31,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; @@ -253,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; }