~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to ntpd/refclock_as2201.c

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
299
299
        /*
300
300
         * Timecode format: "yy:ddd:hh:mm:ss.mmm"
301
301
         */
302
 
        if (sscanf(pp->a_lastcode, "%2d:%3d:%2d:%2d:%2d.%3d", &pp->year,
303
 
                   &pp->day, &pp->hour, &pp->minute, &pp->second, &pp->msec)
 
302
        if (sscanf(pp->a_lastcode, "%2d:%3d:%2d:%2d:%2d.%3ld", &pp->year,
 
303
                   &pp->day, &pp->hour, &pp->minute, &pp->second, &pp->nsec)
304
304
            != 6) {
305
305
                refclock_report(peer, CEVNT_BADREPLY);
306
306
                return;
307
307
        }
 
308
        pp->nsec *= 1000000;
308
309
 
309
310
        /*
310
311
         * Test for synchronization (this is a temporary crock).