wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r8422: LJSUP-5771

Committer: gprochaev
LJSUP-5771

minor changes in expiring date calculate

U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon/Packed.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon/Packed.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon/Packed.pm	2010-04-02 07:14:17 UTC (rev 8421)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/Addon/Packed.pm	2010-04-02 07:32:22 UTC (rev 8422)
@@ -59,7 +59,7 @@
     }
 
     if ($new_size < $old_size) {
-        $exp->{add_exptime} = $new_time / $old_size;
+        $exp->{add_exptime} = ($new_time * $new_size) / $old_size;
         return $old_size;
     }
 

Tags: ljcom, pm, wisest-owl
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments