projects
/
blktrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added in %done for btt
[blktrace.git]
/
btt
/
mmap.c
diff --git
a/btt/mmap.c
b/btt/mmap.c
index 60d4900951a6f66eaa75674021cd50e4d3cc6b79..050d4f84765796ef1fd543d632c17a88307b4694 100644
(file)
--- a/
btt/mmap.c
+++ b/
btt/mmap.c
@@
-138,3
+138,8
@@
int next_trace(struct blk_io_trace *t, void **pdu)
return 1;
}
+
+double pct_done(void)
+{
+ return 100.0 * ((double)cur / (double)total_size);
+}