changeset 1917:ab62ebbd29ba

downloads dpi: init some time variables http://lists.auriga.wearlab.de/pipermail/dillo-dev/2011-February/008058.html
author corvid <corvid@lavabit.com>
date Fri, 11 Feb 2011 02:40:32 +0000
parents 8dd80f88c992
children 55af06da5523 e9768e7d32f2 3d3a1ece7e0f
files dpi/downloads.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dpi/downloads.cc	Mon Feb 07 07:58:14 2011 +0000
+++ b/dpi/downloads.cc	Fri Feb 11 02:40:32 2011 +0000
@@ -318,6 +318,8 @@
    // Init value. Reset later, upon the first data bytes arrival
    init_time = time(NULL);
 
+   twosec_time = onesec_time = init_time;
+
    // BUG:? test a URL with ' inside.
    /* escape "'" character for the shell. Is it necessary? */
    esc_url = Escape_uri_str(url, "'");