Fixed parsing of the no-overwrite flag (would have been a no-op otherwise!)
Made the client more verbose, so that we see when it skips files.
This commit is contained in:
parent
226c1bebcd
commit
e62ee35e9b
1 changed files with 7 additions and 2 deletions
|
@ -283,7 +283,7 @@ int main(int argc, char *argv[]) {
|
||||||
} else if (arg == "--rude") {
|
} else if (arg == "--rude") {
|
||||||
rude = true;
|
rude = true;
|
||||||
} else if (arg == "--no-overwrite") {
|
} else if (arg == "--no-overwrite") {
|
||||||
do_overwrite = true;
|
do_overwrite = false;
|
||||||
} else if (arg.find("--cover=") == 0) {
|
} else if (arg.find("--cover=") == 0) {
|
||||||
cover = arg.substr(8);
|
cover = arg.substr(8);
|
||||||
} else if (arg.find("--") == 0) {
|
} else if (arg.find("--") == 0) {
|
||||||
|
@ -325,7 +325,12 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
while ( (tile = get_next_task( host, port, last_tile )) >= 0 ) {
|
while ( (tile = get_next_task( host, port, last_tile )) >= 0 ) {
|
||||||
SGBucket bucket(tile);
|
SGBucket bucket(tile);
|
||||||
result=!must_generate(bucket) || construct_tile( bucket, result_file, cover );
|
if (!must_generate(bucket)) {
|
||||||
|
cout << "No need to build tile " << tile << "\n";
|
||||||
|
result=true;
|
||||||
|
} else {
|
||||||
|
result=construct_tile( bucket, result_file, cover );
|
||||||
|
}
|
||||||
if ( result ) {
|
if ( result ) {
|
||||||
last_tile = tile;
|
last_tile = tile;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue