ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/network_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/network_stats.c (file contents):
Revision 1.80 by tdb, Mon Oct 9 17:25:06 2006 UTC vs.
Revision 1.81 by tdb, Wed Jun 9 14:44:28 2010 UTC

# Line 607 | Line 607 | sg_network_iface_stats *sg_get_network_iface_stats(int
607                          continue;
608                  }
609  
610 <                /* Only intrested in the first 4 bits)  - Assuming only ETHER devices */
611 <                x = ifmed.ifm_active & 0x0f;    
610 >                /* Assuming only ETHER devices */
611 >                x = IFM_SUBTYPE(ifmed.ifm_active);
612                  switch(x){
613                          /* 10 Mbit connections. Speedy :) */
614                          case(IFM_10_T):
# Line 618 | Line 618 | sg_network_iface_stats *sg_get_network_iface_stats(int
618                          case(IFM_10_FL):
619                                  network_iface_stat_ptr->speed = 10;
620                                  break;
621 <                        /* 100 Mbit conneections */
621 >                        /* 100 Mbit connections */
622                          case(IFM_100_TX):
623                          case(IFM_100_FX):
624                          case(IFM_100_T4):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines