summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2005-01-16 22:25:46 +0100
committerjocuri%softhome.net <>2005-01-16 22:25:46 +0100
commitce3c5ed7f0c8c4426b3717c169674edfe7a16556 (patch)
tree180fa447e85db8e843ccbf9c25870924a16c7686 /globals.pl
parenta3fa7395909a57c7811c2c82d7e5c2dc033d01de (diff)
downloadbugzilla-ce3c5ed7f0c8c4426b3717c169674edfe7a16556.tar.gz
bugzilla-ce3c5ed7f0c8c4426b3717c169674edfe7a16556.tar.xz
Patch for bug 277618: Move FormatTimeUnit() out of globals.pl; patch by Max K-A <mkanat@kerio.com>, r=wurblzap, a=myk.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl14
1 files changed, 0 insertions, 14 deletions
diff --git a/globals.pl b/globals.pl
index 81b99c8ac..dc0a29570 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1448,20 +1448,6 @@ sub PerformSubsts {
return $str;
}
-sub FormatTimeUnit {
- # Returns a number with 2 digit precision, unless the last digit is a 0
- # then it returns only 1 digit precision
- my ($time) = (@_);
-
- my $newtime = sprintf("%.2f", $time);
-
- if ($newtime =~ /0\Z/) {
- $newtime = sprintf("%.1f", $time);
- }
-
- return $newtime;
-
-}
###############################################################################