summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-09-07 17:29:37 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-09-07 17:29:37 +0000
commita1f0c87ac7f98f8555717fd934edf7e706b8694c (patch)
tree1c93711a8b9d69bacbfbf5dccd5a9dbd7abfc613 /perl-install/common.pm
parent241ac866dc8d3d872aa7848eb0d56eb57cf82233 (diff)
downloaddrakx-backup-do-not-use-a1f0c87ac7f98f8555717fd934edf7e706b8694c.tar
drakx-backup-do-not-use-a1f0c87ac7f98f8555717fd934edf7e706b8694c.tar.gz
drakx-backup-do-not-use-a1f0c87ac7f98f8555717fd934edf7e706b8694c.tar.bz2
drakx-backup-do-not-use-a1f0c87ac7f98f8555717fd934edf7e706b8694c.tar.xz
drakx-backup-do-not-use-a1f0c87ac7f98f8555717fd934edf7e706b8694c.zip
no_comment
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index a6849e63f..cea5a0be3 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -589,8 +589,12 @@ sub formatTime($) {
my ($s, $m, $h) = gmtime($_[0]);
if ($h) {
sprintf "%02d:%02d", $h, $m;
+ } elsif ($m > 1) {
+ _("%d minutes", $m);
+ } elsif ($m == 1) {
+ _("1 minute");
} else {
- sprintf _("%d minutes"), $m;
+ _("%d seconds", $s);
}
}