1
0
Fork 0
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:
Nebel 2017-04-22 00:23:13 +09:00
parent 3d5740d3f3
commit c7a9dffe66

View file

@ -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);