summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-09-11 10:56:54 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-09-11 10:56:54 +0000
commit66acc9ca3c2c03404de8a2cb635d67f474e91e0a (patch)
tree031a2d66652d5f9c2d674cf96d5896ccd3a7a5bd /perl-install/common.pm
parentf5d31de24627657212675867a36831d208148043 (diff)
downloaddrakx-backup-do-not-use-66acc9ca3c2c03404de8a2cb635d67f474e91e0a.tar
drakx-backup-do-not-use-66acc9ca3c2c03404de8a2cb635d67f474e91e0a.tar.gz
drakx-backup-do-not-use-66acc9ca3c2c03404de8a2cb635d67f474e91e0a.tar.bz2
drakx-backup-do-not-use-66acc9ca3c2c03404de8a2cb635d67f474e91e0a.tar.xz
drakx-backup-do-not-use-66acc9ca3c2c03404de8a2cb635d67f474e91e0a.zip
no_comment
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index cea5a0be3..4ab8178a4 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -9,7 +9,7 @@ use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK $printable_chars $sizeof_int $bitof_int
common => [ qw(__ even odd arch better_arch compat_arch min max sqr sum and_ or_ sign product bool invbool listlength bool2text bool2yesno text2bool to_int to_float ikeys member divide is_empty_array_ref is_empty_hash_ref add2hash add2hash_ set_new set_add round round_up round_down first second top uniq translate untranslate warp_text formatAlaTeX formatLines deref next_val_in_array) ],
functional => [ qw(fold_left compose mapgrep map_index grep_index find_index map_each grep_each list2kv map_tab_hash mapn mapn_ difference2 before_leaving catch_cdie cdie combine) ],
file => [ qw(dirname basename touch all glob_ cat_ output symlinkf chop_ mode typeFromMagic expand_symlinks) ],
- system => [ qw(sync makedev unmakedev psizeof strcpy gettimeofday syscall_ salt getVarsFromSh setVarsInSh setVarsInCsh substInFile availableRam availableMemory removeXiBSuffix template2file template2userfile update_userkderc list_skels formatTime unix2dos setVirtual) ],
+ system => [ qw(sync makedev unmakedev psizeof strcpy gettimeofday syscall_ salt getVarsFromSh setVarsInSh setVarsInCsh substInFile availableRam availableMemory removeXiBSuffix template2file template2userfile update_userkderc list_skels formatTime formatTimeRaw unix2dos setVirtual) ],
constant => [ qw($printable_chars $sizeof_int $bitof_int $SECTORSIZE %compat_arch) ],
);
@EXPORT_OK = map { @$_ } values %EXPORT_TAGS;
@@ -585,7 +585,7 @@ sub removeXiBSuffix($) {
$_;
}
-sub formatTime($) {
+sub formatTime {
my ($s, $m, $h) = gmtime($_[0]);
if ($h) {
sprintf "%02d:%02d", $h, $m;
@@ -597,6 +597,10 @@ sub formatTime($) {
_("%d seconds", $s);
}
}
+sub formatTimeRaw {
+ my ($s, $m, $h) = gmtime($_[0]);
+ sprintf "%d:%02d:%02d", $h, $m, $s;
+}
#- return the size of the partition and its free space in KiB
sub df {