Add bufBullshit value in commandline test program
parent
2e2d905b28
commit
8fb438ce45
|
@ -49,7 +49,7 @@ int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
unsigned long in, out, tot;
|
unsigned long in, out, tot;
|
||||||
char* device;
|
char* device;
|
||||||
char bufIn[20], bufOut[20], bufTot[20];
|
char bufIn[20], bufOut[20], bufTot[20], bufBS[20];
|
||||||
struct sigaction sig_struct;
|
struct sigaction sig_struct;
|
||||||
|
|
||||||
/* Signal fuer's Beenden */
|
/* Signal fuer's Beenden */
|
||||||
|
@ -75,9 +75,10 @@ int main(int argc, char* argv[])
|
||||||
get_current_netload(&data, &in, &out, &tot);
|
get_current_netload(&data, &in, &out, &tot);
|
||||||
format_byte_humanreadable(bufIn, 20, (double)in, 0, FALSE);
|
format_byte_humanreadable(bufIn, 20, (double)in, 0, FALSE);
|
||||||
format_byte_humanreadable(bufOut, 20, (double)out, 0, FALSE);
|
format_byte_humanreadable(bufOut, 20, (double)out, 0, FALSE);
|
||||||
format_byte_humanreadable(bufTot, 20, (double)tot, 0, FALSE);
|
format_byte_humanreadable(bufTot, 20, (double)tot, 2, TRUE);
|
||||||
printf("Current netload:\nIN : %s\nOUT: %s\nTOT: %s\nIP: %s\n",
|
format_byte_humanreadable(bufBS, 20, 12235345.0, 2, TRUE);
|
||||||
bufIn, bufOut, bufTot, get_ip_address(&data));
|
printf("Current netload:\nIN : %s\nOUT: %s\nTOT: %s\nBS: %s\nIP: %s\n",
|
||||||
|
bufIn, bufOut, bufTot, bufBS, get_ip_address(&data));
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue