IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

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

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.