Skip to content

Commit

Permalink
update progress indicator less often
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbinc committed Jul 13, 2009
1 parent d0ddba0 commit 132e2e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ static void tftp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, struct ip_
memcpy(base + ptr, d + 4, pl);
current_block++;

if (!(current_block & 15))
printf("%c\r", "|/-\\"[(current_block>>4)&3]);
if (!(current_block & 255))
printf("%c\r", "|/-\\"[(current_block>>8)&3]);

ptr += pl;
if (pl < last_size)
Expand Down

0 comments on commit 132e2e5

Please sign in to comment.