Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/audio/record fix -t option
details: https://anonhg.NetBSD.org/src/rev/1d5d2f41d440
branches: trunk
changeset: 476652:1d5d2f41d440
user: dmcmahill <dmcmahill%NetBSD.org@localhost>
date: Thu Sep 23 15:41:31 1999 +0000
description:
fix -t option
diffstat:
usr.bin/audio/record/record.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r cee4e89da9c7 -r 1d5d2f41d440 usr.bin/audio/record/record.c
--- a/usr.bin/audio/record/record.c Thu Sep 23 15:24:34 1999 +0000
+++ b/usr.bin/audio/record/record.c Thu Sep 23 15:41:31 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: record.c,v 1.6 1999/07/13 14:02:34 kleink Exp $ */
+/* $NetBSD: record.c,v 1.7 1999/09/23 15:41:31 dmcmahill Exp $ */
/*
* Copyright (c) 1999 Matthew R. Green
@@ -275,8 +275,8 @@
struct timeval now, diff;
(void)gettimeofday(&now, NULL);
- timersub(&diff, &now, start_tvp);
- timersub(&now, record_tvp, &diff);
+ timersub(&now, start_tvp, &diff);
+ timersub(record_tvp, &diff, &now);
return (now.tv_sec > 0 || (now.tv_sec == 0 && now.tv_usec > 0));
}
Home |
Main Index |
Thread Index |
Old Index