~ubuntu-branches/ubuntu/raring/esniper/raring

« back to all changes in this revision

Viewing changes to history.c

  • Committer: Bazaar Package Importer
  • Author(s): Dima Barsky
  • Date: 2009-10-17 23:09:05 UTC
  • mfrom: (1.1.6 upstream) (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091017230905-oe33cdjqwxfbpt37
Tags: 2.20.0-1
New upstream release (Closes: #539413)

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
                memSkip(mp, 1);
235
235
                free(aip->remainRaw);
236
236
                aip->remainRaw = myStrdup(getNonTag(mp));
 
237
                if (!strcasecmp(aip->remainRaw, "Duration:")) {
 
238
                        /* Duration may follow Time left.  If we
 
239
                         * see this, time left must be empty.  Assume 1 second.
 
240
                         */
 
241
                        free(aip->remainRaw);
 
242
                        aip->remainRaw = myStrdup("");
 
243
                        aip->remain = 1;
 
244
                }
237
245
                if (!strcasecmp(aip->remainRaw, "Refresh")) {
238
246
                        /* Refresh is the label on the next button.  If we
239
247
                         * see this, time left must be empty.  Assume 1 second.
627
635
        long accum = 0;
628
636
        long num;
629
637
 
 
638
        /* skip leading space */
 
639
        while (*timestr && isspace((int)*timestr))
 
640
                ++timestr;
 
641
 
630
642
        /* Time is blank in transition between "Time left: 1 seconds" and
631
643
         * "Time left: auction has ended".  I don't know if blank means
632
644
         * the auction is over, or it still running with less than 1 second.