1
0
Fork 0
mirror of https://github.com/kou029w/k2ping.git synced 2025-01-18 08:05:01 +00:00

Merge pull request #12 from kou029w/fixed-bug-in-all-cases-of-transmit-failed

Fixed a bug in all cases of Transmit failed
This commit is contained in:
Nebel 2017-04-22 00:27:39 +09:00 committed by GitHub
commit 7f34172fbf

View file

@ -109,7 +109,7 @@ void ping_recv_cb(void *_option, void *_resp) {
}
if (errors + success >= opt->count) {
avg_time /= success;
if (success > 0) avg_time /= success;
lcd.clear();
p((char*)"%4dbyte%3d%%loss", total_bytes, 100 * errors / opt->count);
lcd.setCursor(0, 2);