mirror of
https://github.com/kou029w/k2ping.git
synced 2025-01-18 16:07:59 +00:00
Fixed a bug in all cases of Transmit failed
This commit is contained in:
parent
3d5740d3f3
commit
c7a9dffe66
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ void ping_recv_cb(void *_option, void *_resp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errors + success >= opt->count) {
|
if (errors + success >= opt->count) {
|
||||||
avg_time /= success;
|
if (success > 0) avg_time /= success;
|
||||||
lcd.clear();
|
lcd.clear();
|
||||||
p((char*)"%4dbyte%3d%%loss", total_bytes, 100 * errors / opt->count);
|
p((char*)"%4dbyte%3d%%loss", total_bytes, 100 * errors / opt->count);
|
||||||
lcd.setCursor(0, 2);
|
lcd.setCursor(0, 2);
|
||||||
|
|
Loading…
Add table
Reference in a new issue