Lines 117-123
pkts_in_func ( void )
Link Here
|
117 |
} |
117 |
} |
118 |
p = index (p, '\n') + 1; // skips a line |
118 |
p = index (p, '\n') + 1; // skips a line |
119 |
} |
119 |
} |
120 |
(unsigned long) diff = pkts_in - last_pkts_in; |
120 |
diff = pkts_in - last_pkts_in; |
121 |
if ( diff ) |
121 |
if ( diff ) |
122 |
{ |
122 |
{ |
123 |
t = proc_net_dev.last_read - stamp; |
123 |
t = proc_net_dev.last_read - stamp; |
Lines 177-183
pkts_out_func ( void )
Link Here
|
177 |
} |
177 |
} |
178 |
p = index (p, '\n') + 1; // skips a line |
178 |
p = index (p, '\n') + 1; // skips a line |
179 |
} |
179 |
} |
180 |
(unsigned long) diff = pkts_out - last_pkts_out; |
180 |
diff = pkts_out - last_pkts_out; |
181 |
if ( diff ) |
181 |
if ( diff ) |
182 |
{ |
182 |
{ |
183 |
t = proc_net_dev.last_read - stamp; |
183 |
t = proc_net_dev.last_read - stamp; |
Lines 238-244
bytes_out_func ( void )
Link Here
|
238 |
} |
238 |
} |
239 |
p = index (p, '\n') + 1; // skips a line |
239 |
p = index (p, '\n') + 1; // skips a line |
240 |
} |
240 |
} |
241 |
(unsigned long) diff = bytes_out - last_bytes_out; |
241 |
diff = bytes_out - last_bytes_out; |
242 |
if ( diff ) |
242 |
if ( diff ) |
243 |
{ |
243 |
{ |
244 |
t = proc_net_dev.last_read - stamp; |
244 |
t = proc_net_dev.last_read - stamp; |
Lines 302-308
bytes_in_func ( void )
Link Here
|
302 |
} |
302 |
} |
303 |
p = index (p, '\n') + 1; // skips a line |
303 |
p = index (p, '\n') + 1; // skips a line |
304 |
} |
304 |
} |
305 |
(unsigned long) diff = bytes_in - last_bytes_in; |
305 |
diff = bytes_in - last_bytes_in; |
306 |
if ( diff ) |
306 |
if ( diff ) |
307 |
{ |
307 |
{ |
308 |
t = proc_net_dev.last_read - stamp; |
308 |
t = proc_net_dev.last_read - stamp; |