diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-08-29 20:58:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-08-29 20:58:34 +0000 |
commit | 70e446850e82317805db0a2f1508e3edc81b6a7f (patch) | |
tree | 651dcd40fe9148256f2d5de239e40e31ce3661d9 /src/util/time.c | |
parent | 61b1c378568bbf7ca7cb1a51d2f1920d5d36fd26 (diff) | |
download | gnunet-70e446850e82317805db0a2f1508e3edc81b6a7f.tar.gz gnunet-70e446850e82317805db0a2f1508e3edc81b6a7f.zip |
more
Diffstat (limited to 'src/util/time.c')
-rw-r--r-- | src/util/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/time.c b/src/util/time.c index 6b6be7917..f818fc9a1 100644 --- a/src/util/time.c +++ b/src/util/time.c | |||
@@ -261,7 +261,7 @@ struct GNUNET_TIME_Relative GNUNET_TIME_calculate_eta (struct GNUNET_TIME_Absolu | |||
261 | if (finished >= total) | 261 | if (finished >= total) |
262 | return GNUNET_TIME_UNIT_ZERO; | 262 | return GNUNET_TIME_UNIT_ZERO; |
263 | if (finished == 0) | 263 | if (finished == 0) |
264 | return GNUNET_TIME_UNIT_FOREVER; | 264 | return GNUNET_TIME_UNIT_FOREVER_REL; |
265 | dur = GNUNET_TIME_absolute_get_duration (start); | 265 | dur = GNUNET_TIME_absolute_get_duration (start); |
266 | exp = ((double)dur.value) * ((double) total) / ((double)finished); | 266 | exp = ((double)dur.value) * ((double) total) / ((double)finished); |
267 | ret.value = ((uint64_t) exp) - dur.value; | 267 | ret.value = ((uint64_t) exp) - dur.value; |