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.30 by pajs, Fri Feb 13 14:41:05 2004 UTC vs.
Revision 1.31 by ats, Fri Feb 13 15:12:26 2004 UTC

# Line 339 | Line 339 | void network_iface_stat_init(int start, int end, netwo
339          for(net_stats+=start; start<end; start++){
340                  net_stats->interface_name=NULL;
341                  net_stats->speed=0;
342 <                net_stats->dup=UNKNOWN_DUPEX;
342 >                net_stats->dup=UNKNOWN_DUPLEX;
343                  net_stats++;
344          }
345   }
# Line 450 | Line 450 | network_iface_stat_t *get_network_iface_stats(int *ent
450                          case(IFM_1000_SX):
451                          case(IFM_1000_LX):
452                          case(IFM_1000_CX):
453 < #ifdef FREEBSD5
454 <                        case(IFM_1000_T):
455 < #else
453 > #if defined(FREEBSD) && !defined(FREEBSD5)
454                          case(IFM_1000_TX):
455                          case(IFM_1000_FX):
456 + #else
457 +                        case(IFM_1000_T):
458   #endif
459                                  network_iface_stat_ptr->speed = 1000;
460                                  break;
# Line 469 | Line 469 | network_iface_stat_t *get_network_iface_stats(int *ent
469                  }else if( (ifmed.ifm_active | IFM_HDX) == ifmed.ifm_active ){
470                          network_iface_stat_ptr->dup = HALF_DUPLEX;
471                  }else{
472 <                        network_iface_stat_ptr->dup = UNKNOWN_DUPEX;
472 >                        network_iface_stat_ptr->dup = UNKNOWN_DUPLEX;
473                  }
474                  ifaces++;
475          }      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines