IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 3, 2007, 5:29:04 PM (19 years ago)
Author:
Paul Price
Message:

Adding URI support for output stats file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageLoop.c

    r12819 r13229  
    2020    FILE *statsFile = NULL;             // File stream for statistics
    2121    if (mdok && statsName && strlen(statsName) > 0) {
    22         statsFile = fopen(statsName, "w");
     22        psString resolved = pmConfigConvertFilename(statsName, config, true); // Resolved filename
     23        statsFile = fopen(resolved, "w");
    2324        if (!statsFile) {
    24             psError(PS_ERR_IO, true, "Unable to open statistics file %s for writing.\n", statsName);
     25            psError(PS_ERR_IO, true, "Unable to open statistics file %s for writing.\n", resolved);
     26            psFree(resolved);
     27            return false;
    2528        } else {
    2629            stats = psMetadataAlloc();
    2730        }
     31        psFree(resolved);
    2832    }
    2933
Note: See TracChangeset for help on using the changeset viewer.