IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24916


Ignore:
Timestamp:
Jul 23, 2009, 4:43:48 PM (17 years ago)
Author:
jhoblitt
Message:

fix nebStat() to handle avialable/total # of instances

Location:
trunk/Nebulous/nebclient/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/nebclient/src/nebclient.c

    r24289 r24916  
    816816    resultArray    = response.result->__ptr;
    817817
    818     if (resultElements != 7) {
     818    if (resultElements != 8) {
    819819        nebSetErr(server, "server didn't return the proper number of stat elements");
    820820        return NULL;
     
    827827    nullstrncpy(stat->epoch, resultArray[4], 256);
    828828    nullstrncpy(stat->mtime, resultArray[5], 256);
    829     stat->instances = atoi(resultArray[6]);
     829    stat->available = atoi(resultArray[6]);
     830    stat->instances = atoi(resultArray[7]);
    830831
    831832    return stat;
  • trunk/Nebulous/nebclient/src/nebclient.h

    r24289 r24916  
    4444    char            epoch[256];         ///< creation time stamp
    4545    char            mtime[256];         ///< modification time stamp
    46     int             instances;          ///< number of instances
     46    int             available;          ///< number of available instances
     47    int             instances;          ///< total number of instances
    4748} nebObjectStat;
    4849
Note: See TracChangeset for help on using the changeset viewer.