aboutsummaryrefslogtreecommitdiff
path: root/multi.c
diff options
context:
space:
mode:
Diffstat (limited to 'multi.c')
-rw-r--r--multi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/multi.c b/multi.c
index ee74a46..fa924f1 100644
--- a/multi.c
+++ b/multi.c
@@ -408,8 +408,10 @@ multi_client_disconnect_setenv (struct multi_context *m,
setenv_counter (mi->context.c2.es, "bytes_sent", mi->context.c2.link_write_bytes);
/* setenv connection duration */
- const unsigned int duration = (unsigned int) now - mi->created;
- setenv_unsigned (mi->context.c2.es, "time_duration", duration);
+ {
+ const unsigned int duration = (unsigned int) now - mi->created;
+ setenv_unsigned (mi->context.c2.es, "time_duration", duration);
+ }
}
static void