Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 555950
Collapse All | Expand All

(-)a/bwbar.c (-3 / +3 lines)
Lines 188-194 int main(int argc, char *argv[]) Link Here
188
  FILE *pnd;
188
  FILE *pnd;
189
  char *interface;
189
  char *interface;
190
  struct ifinfo {
190
  struct ifinfo {
191
    char name[8];
191
    char name[16];
192
    unsigned int r_bytes, r_pkt, r_err, r_drop, r_fifo, r_frame;
192
    unsigned int r_bytes, r_pkt, r_err, r_drop, r_fifo, r_frame;
193
    unsigned int r_compr, r_mcast;
193
    unsigned int r_compr, r_mcast;
194
    unsigned int x_bytes, x_pkt, x_err, x_drop, x_fifo, x_coll;
194
    unsigned int x_bytes, x_pkt, x_err, x_drop, x_fifo, x_coll;
Lines 280-286 int main(int argc, char *argv[]) Link Here
280
  lbin = 0; lbout = 0;
280
  lbin = 0; lbout = 0;
281
281
282
  gettimeofday(&t_last, NULL);
282
  gettimeofday(&t_last, NULL);
283
  
283
284
  while ( 1 ) {
284
  while ( 1 ) {
285
285
286
    /**** Begin code that obtains bandwidth data ****/
286
    /**** Begin code that obtains bandwidth data ****/
Lines 298-304 int main(int argc, char *argv[]) Link Here
298
298
299
    /* Get interface info */
299
    /* Get interface info */
300
    do {
300
    do {
301
      if ( fscanf(pnd, " %6[^:]:%u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u",
301
      if ( fscanf(pnd, " %15[^:]:%u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u",
302
		  ifc.name,
302
		  ifc.name,
303
		  &ifc.r_bytes, &ifc.r_pkt, &ifc.r_err, &ifc.r_drop,
303
		  &ifc.r_bytes, &ifc.r_pkt, &ifc.r_err, &ifc.r_drop,
304
		  &ifc.r_fifo, &ifc.r_frame, &ifc.r_compr, &ifc.r_mcast,
304
		  &ifc.r_fifo, &ifc.r_frame, &ifc.r_compr, &ifc.r_mcast,

Return to bug 555950