From 33bd0b103f6c5e841dc3f43290a8923ceaca79f5 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sat, 10 Jul 2010 12:32:46 +0000 Subject: When a file is created, initialize its ``busy cycles'' counter to zero. --- usr.bin/aucat/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/aucat/file.c b/usr.bin/aucat/file.c index 83d0c75c70d..e1eefa8d8ae 100644 --- a/usr.bin/aucat/file.c +++ b/usr.bin/aucat/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.20 2010/07/06 20:06:35 ratchov Exp $ */ +/* $OpenBSD: file.c,v 1.21 2010/07/10 12:32:45 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -247,6 +247,7 @@ file_new(struct fileops *ops, char *name, unsigned nfds) f->ops = ops; f->name = name; f->state = 0; + f->cycles = 0; f->rproc = NULL; f->wproc = NULL; LIST_INSERT_HEAD(&file_list, f, entry); -- cgit v1.2.3