projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move struct senders[] from server.c to vss.c.
[paraslash.git]
/
time.c
diff --git
a/time.c
b/time.c
index
b7155cb
..
1fd7b09
100644
(file)
--- a/
time.c
+++ b/
time.c
@@
-169,3
+169,13
@@
int tv_convex_combination(const long a, const struct timeval *tv1,
ret = -ret;
return ret;
}
ret = -ret;
return ret;
}
+
+void compute_chunk_time(long unsigned chunk_num,
+ struct timeval *chunk_tv, struct timeval *stream_start,
+ struct timeval *result)
+{
+ struct timeval tmp;
+
+ tv_scale(chunk_num, chunk_tv, &tmp);
+ tv_add(&tmp, stream_start, result);
+}