Author: fapeeler
Date: Mon Nov  8 18:52:57 2010
New Revision: 1032666

URL: http://svn.apache.org/viewvc?rev=1032666&view=rev
Log:
variable changes

Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/Module/Predictive/Level_1.pm

Modified: 
incubator/vcl/trunk/managementnode/lib/VCL/Module/Predictive/Level_1.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/Predictive/Level_1.pm?rev=1032666&r1=1032665&r2=1032666&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/Predictive/Level_1.pm 
(original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/Predictive/Level_1.pm Mon 
Nov  8 18:52:57 2010
@@ -214,21 +214,21 @@ sub get_next_image {
        # check if > X% usage, look at past X days, otherwise, look at past 2 
months
        my $timeframe;
        my $notavail = ($online - $avail);
-       if (($notavail / $online) > 0.75) {
+       if (($notavail / $online) > 0.35) {
+               $timeframe = '1 DAY';
+       }
+       elsif(($notavail / $online) > 0.25) {
                $timeframe = '2 DAY';
        }
-       elsif(($notavail / $online) > 0.55) {
+       elsif(($notavail / $online) > 0.15) {
                $timeframe = '5 DAY';
        }
-       elsif(($notavail / $online) > 0.45) {
+       elsif(($notavail / $online) > 0.10) {
                $timeframe = '10 DAY';
        }
-       elsif(($notavail / $online) > 0.35) {
+       elsif(($notavail / $online) > 0.05) {
                $timeframe = '20 DAY';
        }
-       elsif(($notavail / $online) > 0.25) {
-               $timeframe = '30 DAY';
-       }
        else {
                $timeframe = '2 MONTH';
        }


Reply via email to