Ignore:
Timestamp:
2013/01/16 12:43:41 (11 years ago)
Author:
undertree
Message:

#1609 CSV_SIZE による制限を画面上に表示する

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/util/SC_Utils.php

    r22251 r22255  
    18081808    function getUnitDataSize($data){ 
    18091809 
    1810         if(CSV_SIZE < 1000){ 
    1811             $data = CSV_SIZE . "KB"; 
    1812         }elseif(CSV_SIZE < 1000000){  
    1813             $data = CSV_SIZE/1000 . "MB"; 
     1810        if($data < 1000){ 
     1811            $return = $data . "KB"; 
     1812        }elseif($data < 1000000){  
     1813            $return = $data/1000 . "MB"; 
    18141814        }else{ 
    1815             $data = CSV_SIZE/1000000 . "GB"; 
    1816         } 
    1817         return $data; 
     1815            $return = $data/1000000 . "GB"; 
     1816        } 
     1817        return $return; 
    18181818    } 
    18191819} 
Note: See TracChangeset for help on using the changeset viewer.