~ubuntu-branches/ubuntu/vivid/sysstat/vivid

« back to all changes in this revision

Viewing changes to sa_wrap.c

  • Committer: Package Import Robot
  • Author(s): Robert Luberda
  • Date: 2013-09-21 22:27:45 UTC
  • mfrom: (22.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20130921222745-8e9zv1n3tn3uc0wa
Tags: 10.1.7-1
* New upstream version.
* Remove no longer needed 11-fix-concurrency-build-issue.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
{
285
285
        struct stats_net_dev *st_net_dev
286
286
                = (struct stats_net_dev *) a->_buf0;
 
287
        int dev;
287
288
 
288
289
        /* Read network interfaces stats */
289
 
        read_net_dev(st_net_dev, a->nr);
 
290
        dev = read_net_dev(st_net_dev, a->nr);
 
291
        if (!dev)
 
292
                /* No data read. Exit */
 
293
                return;
 
294
        
 
295
        /* Read duplex and speed info for each interface */
 
296
        read_if_info(st_net_dev, dev);
290
297
        
291
298
        return;
292
299
}