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:
commit
7f34172fbf
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) {
|
||||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue