Changeset 37792
- Timestamp:
- Jan 11, 2015, 1:08:36 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src
- Files:
-
- 2 edited
-
HostTable.c (modified) (5 diffs)
-
dvo_convert.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/HostTable.c
r37667 r37792 333 333 334 334 // this loop has 2 chunks: (a) check for I/O + (b) check for jobs done 335 while ( 1) {335 while (Nfound < Nrunning) { 336 336 337 337 // Wait up to 0.5 second for host to provide I/O … … 362 362 // if (table->hosts[i].stdout.Nbuffer > 0x10000) { 363 363 if (table->hosts[i].stdout.Nbuffer > 0x1000) { 364 int printHead = VERBOSE ||(table->hosts[i].stdout.Nbuffer > 0);364 int printHead = VERBOSE && (table->hosts[i].stdout.Nbuffer > 0); 365 365 if (printHead) fprintf (stdout, "--- stdout from %s --- (%d bytes, v1)\n", table->hosts[i].hostname, table->hosts[i].stdout.Nbuffer); 366 366 int Nout = write (STDOUT_FILENO, table->hosts[i].stdout.buffer, table->hosts[i].stdout.Nbuffer); … … 376 376 // if (table->hosts[i].stderr.Nbuffer > 0x10000) { 377 377 if (table->hosts[i].stderr.Nbuffer > 0x1000) { 378 int printHead = VERBOSE ||(table->hosts[i].stderr.Nbuffer > 0);378 int printHead = VERBOSE && (table->hosts[i].stderr.Nbuffer > 0); 379 379 if (printHead) fprintf (stdout, "--- stderr from %s --- (%d bytes, v1)\n", table->hosts[i].hostname, table->hosts[i].stderr.Nbuffer); 380 380 int Nout = write (STDOUT_FILENO, table->hosts[i].stderr.buffer, table->hosts[i].stderr.Nbuffer); … … 392 392 if (!pid) { 393 393 // fprintf (stderr, "no hosts to harvest\n"); 394 usleep ( 500000);394 usleep (200000); 395 395 break; // no outstanding jobs have finished 396 396 } … … 445 445 } 446 446 } 447 if (!found) { 448 fprintf (stderr, "Programming error: failed to matched finished job to known host!\n"); 449 exit (2); 450 } 451 Nfound ++; 447 if (found) Nfound ++; 448 // we sometimes harvest children not in the list (eg, closed kapa window). just ignore 452 449 if (Nfound == Nrunning) goto escape; // we've harvested all jobs 453 450 } -
branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/dvo_convert.c
r37494 r37792 258 258 case DVO_FORMAT_##FORMAT: { \ 259 259 Measure_##TYPE *tmpMeasure; \ 260 myAssert (ABS_COORDS || average, "conversion tointernal needs average table"); \260 myAssert (ABS_COORDS || average, "conversion from internal needs average table"); \ 261 261 tmpMeasure = MeasureInternalTo_##TYPE (average, measure, Nmeasure); \ 262 262 gfits_table_set_Measure_##TYPE (ftable, tmpMeasure, Nmeasure); \
Note:
See TracChangeset
for help on using the changeset viewer.
