[Rt-commit] r3328 - in rt/branches/CHALDEA-EXPERIMENTAL: . html
jesse at bestpractical.com
jesse at bestpractical.com
Sun Jul 3 18:11:06 EDT 2005
Author: jesse
Date: Sun Jul 3 18:11:05 2005
New Revision: 3328
Modified:
rt/branches/CHALDEA-EXPERIMENTAL/ (props changed)
rt/branches/CHALDEA-EXPERIMENTAL/html/autohandler
Log:
r22143 at hualien: jesse | 2005-07-03 17:49:55 -0400
r22037 at hualien: jesse | 2005-07-01 19:25:05 -0400
r22031 at hualien (orig r3273): alexmv | 2005-07-01 00:46:49 -0400
r4557 at zoq-fot-pik: chmrr | 2005-06-30 20:44:33 -0400
* Fractional units
Modified: rt/branches/CHALDEA-EXPERIMENTAL/html/autohandler
==============================================================================
--- rt/branches/CHALDEA-EXPERIMENTAL/html/autohandler (original)
+++ rt/branches/CHALDEA-EXPERIMENTAL/html/autohandler Sun Jul 3 18:11:05 2005
@@ -74,6 +74,9 @@
foreach my $field (@TimeUnitFields) {
next unless ($field =~ /^(.*?)-TimeUnits$/i);
my $local = $1;
+ $ARGS{$local} =~ s|\b (\d* \s+) (\d+)/(\d+) \b
+ |$1 + ($3 == 0 ? 0 : ($2 / $3))
+ |xe;
if ($ARGS{$field} =~ /hours/i) {
$ARGS{$local} *= 60;
}
More information about the Rt-commit
mailing list