~ubuntu-branches/ubuntu/maverick/alsa-lib/maverick-proposed

« back to all changes in this revision

Viewing changes to test/latency.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2010-08-29 13:13:19 UTC
  • Revision ID: james.westby@ubuntu.com-20100829131319-ybw1m417ja2d2nv4
Tags: 1.0.23-1ubuntu2
* Apply upstream git changesets aadcbab through 72c7260ce
  and rediff debian/patches/relibtoolise.patch
  - correctly free dl handles, fixes LP: #552411, #584393
    (Closes: #589896)

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
        l = (signed long) t1.tv_usec - (signed long) t2.tv_usec;
322
322
        if (l < 0) {
323
323
                t1.tv_sec--;
324
 
                l = -l;
 
324
                l = 1000000 + l;
325
325
                l %= 1000000;
326
326
        }
327
327
        return (t1.tv_sec * 1000000) + l;