http://dcherukhin.i2p/programs/ldus/source/network/log.cgi.c
errors_n && (str = strstr(line, "errors")) && sscanf(str + 6, "%lu/%lu", &errors_in, &errors_out) == 2)
errors_n = 1;
}
for (j = 0; j < 5; ++j) if (traffic_n[j]) {
inoutline("Traffic", param[j], "b", traffic_in[j], traffic_out[j], traffic_n[j]);
}
printf(" \n");
if (errors_n) {
inoutline("Errors", param[4], "", errors_in, errors_out, errors_n);
}
for (j = 0; j < 5; ++j) if (packets_n[j]) {
if (j < 3) {
packets_n[j]--;
packets_n[j] *= 60;
packets_in[j] = packets_in[4] -...