Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/network/if1sec-c.c | ||
|---|---|---|
| 78 | 78 |
"down.graph no" "\n" |
| 79 | 79 |
"down.cdef down,8,*" "\n" |
| 80 | 80 |
"down.min 0" "\n" |
| 81 |
|
|
| 81 |
|
|
| 82 | 82 |
"up.label bps" "\n" |
| 83 | 83 |
"up.type DERIVE" "\n" |
| 84 | 84 |
"up.negative down" "\n" |
| ... | ... | |
| 186 | 186 |
char if_id[64]; |
| 187 | 187 |
uint_fast64_t r_bytes, r_packets, r_errs, r_drop, r_fifo, r_frame, r_compressed, r_multicast; |
| 188 | 188 |
uint_fast64_t t_bytes, t_packets, t_errs, t_drop, t_fifo, t_frame, t_compressed, t_multicast; |
| 189 |
sscanf(line, "%s" |
|
| 189 |
sscanf(line, "%s" |
|
| 190 |
" " |
|
| 191 |
"%llu %llu %llu %llu %llu %llu %llu %llu" |
|
| 190 | 192 |
" " |
| 191 |
"%llu %llu %llu %llu %llu %llu %llu %llu" |
|
| 192 |
" " |
|
| 193 | 193 |
"%llu %llu %llu %llu %llu %llu %llu %llu" |
| 194 | 194 |
, if_id |
| 195 | 195 |
, &r_bytes, &r_packets, &r_errs, &r_drop, &r_fifo, &r_frame, &r_compressed, &r_multicast |
| ... | ... | |
| 200 | 200 |
if_id[strlen(if_id) - 1] = '\0'; |
| 201 | 201 |
|
| 202 | 202 |
char out_buffer[1024]; |
| 203 |
sprintf(out_buffer,
|
|
| 203 |
sprintf(out_buffer, |
|
| 204 | 204 |
"multigraph if_%s_1sec" "\n" |
| 205 | 205 |
"up.value %ld:%llu" "\n" |
| 206 | 206 |
"down.value %ld:%llu" "\n" |
| 207 |
, if_id
|
|
| 207 |
, if_id |
|
| 208 | 208 |
, epoch, r_bytes |
| 209 | 209 |
, epoch, t_bytes |
| 210 | 210 |
); |
| ... | ... | |
| 276 | 276 |
} |
| 277 | 277 |
|
| 278 | 278 |
/***** DEMO |
| 279 |
|
|
| 279 |
|
|
| 280 | 280 |
/proc/net/dev sample |
| 281 | 281 |
|
| 282 | 282 |
Inter-| Receive | Transmit |
Formats disponibles : Unified diff