projects
/
my-code
/
ivac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some spaces added in print_rate function
[my-code/ivac.git]
/
stream.c
diff --git
a/stream.c
b/stream.c
index
aa8c52a
..
07439a5
100644
(file)
--- 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);
: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");
while(count--) printf("\b");
+
return 1;
}
return 1;
}