X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=stream.c;h=07439a58975b2e3cf03f5e0ae9f58e39bf0b9bbd;hp=aa8c52a4f10748b35d86b44dc08d8e9c2e8d0b4b;hb=6b894156a6cd304f35a959d4388dfb1e1342e844;hpb=d333f09513d243b67eb0ab5d5272461184f1e5a8 diff --git a/stream.c b/stream.c index aa8c52a..07439a5 100644 --- a/stream.c +++ b/stream.c @@ -47,8 +47,9 @@ int print_rate(struct timeval *time_start,int t) { :now.tv_usec-time_start->tv_usec; delta_t=sec_t*1000000+usec_t; kbs_t=(t/delta_t)*(1000000/1024); - count=printf("total: %d MByte - average: %d kB/s",t/(1024*1024),kbs_t); + count=printf("total: %d MByte - average: %d kB/s ",t/(1024*1024),kbs_t); while(count--) printf("\b"); + return 1; }