#42 patch for "Auction show as ended"

closed-out-of-date
bushing
None
5
2001-04-22
2001-04-14
Anonymous
No

This patch on 1.1.9.2 solved my problem for all
auctions displayed as ended. Source tested on Solaris
8 64-bit:

Basically ebay changed the listing field and you have
to parse out additional groups. I also had issues with
the CalcTimeLeft function, so I scrapped it.

348,352d347
<
< scratch = strtok(0,"\t");
< if ( !scratch ) return listCount;
< scratch = strtok(0,"\t");
< if ( !scratch ) return listCount;
355,358d349
< scratch = strtok(0,"\t");
< if ( !scratch ) return listCount;
< scratch = strtok(0,"\t");
< if ( !scratch ) return listCount;
366,367d356
< scratch = strtok(0,"\t");
< if ( !scratch ) return listCount;
370,373d358
< scratch = strtok(0,"\t");
< if ( !scratch ) return listCount;
< scratch = strtok(0,"\t");
< if ( !scratch ) return listCount;
377a363
>
523c509,511
< int intTimeLeft = CalcTimeLeft(endTime ,
ebayOffset);
---
> long int localTime = time(NULL);
> localTime += ebayOffset;
> int intTimeLeft = (endTime - localTime);

Rgds, jason at ultrafast.net

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Opps, posted this diff backwards. Here is one in correct
    order:

    347a348,352
    >
    > scratch = strtok(0,"\t");
    > if ( !scratch ) return listCount;
    > scratch = strtok(0,"\t");
    > if ( !scratch ) return listCount;
    349a355,358
    > scratch = strtok(0,"\t");
    > if ( !scratch ) return listCount;
    > scratch = strtok(0,"\t");
    > if ( !scratch ) return listCount;
    356a366,367
    > scratch = strtok(0,"\t");
    > if ( !scratch ) return listCount;
    358a370,373
    > scratch = strtok(0,"\t");
    > if ( !scratch ) return listCount;
    > scratch = strtok(0,"\t");
    > if ( !scratch ) return listCount;
    363d377
    <
    509,511c523
    < long int localTime = time(NULL);
    < localTime += ebayOffset;
    < int intTimeLeft = (endTime - localTime);
    ---
    > int intTimeLeft = CalcTimeLeft(endTime , ebayOffset);

    Modification of CalcTimeLeft was just an optimization
    because the function was written immediately above but the
    code was pasted as well.

     
  • bushing

    bushing - 2001-04-22
    • assigned_to: nobody --> bushing
    • summary: patch for "Auction show as ended" --> patch for "Auction show as ended"
    • status: open --> closed-out-of-date
     
  • bushing

    bushing - 2001-04-22

    Logged In: YES
    user_id=1125

    Please check to see if this bug is still present in the
    current version.

    Ben

     

Log in to post a comment.