From cee5db3014a726c2378c3981b0e231364e222a23 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 22 Sep 2003 21:57:59 +0000 Subject: [PATCH] Fixed the output of how long the muxing took (use plural only for seconds != 1). --- src/mkvmerge.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mkvmerge.cpp b/src/mkvmerge.cpp index 5e9b6954c..28d681a94 100644 --- a/src/mkvmerge.cpp +++ b/src/mkvmerge.cpp @@ -2094,8 +2094,9 @@ int main(int argc, char **argv) { end = time(NULL); - mxinfo("\nPass 1 took %u seconds.\nPass 2: merging the files. This will " - "take even longer.\n\n", end - start); + mxinfo("\nPass 1 took %u second%s.\nPass 2: merging the files. This will " + "take even longer.\n\n", end - start, + (end - start) == 1 ? "" : "s"); start = time(NULL); @@ -2114,7 +2115,8 @@ int main(int argc, char **argv) { finish_file(); end = time(NULL); - mxinfo("Pass 2 took %u seconds.\n", end - start); + mxinfo("Pass 2 took %u second%s.\n", end - start, + (end - start) == 1 ? "" : "s"); } else { @@ -2131,7 +2133,8 @@ int main(int argc, char **argv) { finish_file(); end = time(NULL); - mxinfo("Muxing took %u seconds.\n", end - start); + mxinfo("Muxing took %u second%s.\n", end - start, + (end - start) == 1 ? "" : "s"); } cleanup();