From 805a4fc2b3e406e0b1506fdfd54aa8750d289659 Mon Sep 17 00:00:00 2001 From: jules on spawn Date: Tue, 10 Apr 2018 17:49:13 +0200 Subject: counting samples again --- latest.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/latest.pl b/latest.pl index 60d4a06..4975a0a 100755 --- a/latest.pl +++ b/latest.pl @@ -32,7 +32,6 @@ sub process($){ while (readdir DIR) { next unless /wav$/; $c += 1; - last; } closedir DIR; @@ -52,6 +51,11 @@ sub process($){ if (! $epoch[0]) { return 0; } + + if (! $opt_l) { + print $name . ", $c samples\n"; + } + $epoch[0] =~ /(\d+)/; if ($1 < 4) { return 0; -- cgit v1.2.3-70-g09d2