strength

From: Dylan Douglas <dylan_at_mediadefender.com>
Date: Tue, 19 Jun 2007 13:32:59 -0700

  if( $size < 8388608 )
  {
    if( $sources >= 10 )
      return "5";
    else if( $sources >= 8 )
      return "4";
    else if( $sources >= 6 )
      return "3";
    else if( $sources >= 4 )
      return "2";
    else
      return "1";
 
  }
  else if( $size < 134217728 )
  {
    if( $sources >= 40 )
      return "5";
    else if( $sources >= 30 )
      return "4";
    else if( $sources >= 20 )
      return "3";
    else if( $sources >= 10 )
      return "2";
    else
      return "1";
  }
  else if( $size < 536870912 )
  {
    if( $sources >= 100 )
      return "5";
    else if( $sources >= 75 )
      return "4";
    else if( $sources >= 50 )
      return "3";
    else if( $sources >= 25 )
      return "2";
    else
      return "1";
  }
  else if( $size < 1073741824 )
 {
    if( $sources >= 200 )
      return "5";
    else if( $sources >= 150 )
      return "4";
    else if( $sources >= 100 )
      return "3";
    else if( $sources >= 50 )
      return "2";
    else
      return "1";
  }
  else
  {
    if( $sources >= 400 )
      return "5";
    else if( $sources >= 300 )
      return "4";
    else if( $sources >= 200 )
      return "3";
    else if( $sources >= 100 )
      return "2";
    else
      return "1";
  }

 
-----
Dylan Douglas
MediaDefender
 
Received on Fri Sep 14 2007 - 10:55:58 BST

This archive was generated by hypermail 2.2.0 : Sun Sep 16 2007 - 22:19:47 BST