Project

General

Profile

Bug #23755 ยป 16022_measurements_with_double_t3lib_div.patch

Administrator Admin, 2010-10-16 22:56

View differences:

t3lib/class.t3lib_div.php (Arbeitskopie)
*/
public static function getBytesFromSizeMeasurement($measurement) {
if (stripos($measurement, 'G')) {
$bytes = intval($measurement) * 1024 * 1024 * 1024;
$bytes = doubleval($measurement) * 1024 * 1024 * 1024;
} else if (stripos($measurement, 'M')) {
$bytes = intval($measurement) * 1024 * 1024;
$bytes = doubleval($measurement) * 1024 * 1024;
} else if (stripos($measurement, 'K')) {
$bytes = intval($measurement) * 1024;
$bytes = doubleval($measurement) * 1024;
} else {
$bytes = intval($measurement);
$bytes = doubleval($measurement);
}
return $bytes;
}
    (1-1/1)