mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-31 15:19:36 +02:00
Update Text.php
- Fix the function convertDataUnit
This commit is contained in:
parent
d19cdf3897
commit
c1588d88c3
1 changed files with 3 additions and 3 deletions
|
@ -74,11 +74,11 @@ class Text
|
||||||
if ($unit == 'KB') {
|
if ($unit == 'KB') {
|
||||||
return $datalimit * 1024;
|
return $datalimit * 1024;
|
||||||
} elseif ($unit == 'MB') {
|
} elseif ($unit == 'MB') {
|
||||||
return $datalimit * 1024 * 1000;
|
return $datalimit * 1048576;
|
||||||
} elseif ($unit == 'GB') {
|
} elseif ($unit == 'GB') {
|
||||||
return $datalimit * 1024 * 1000 * 1000;
|
return $datalimit * 1073741824;
|
||||||
} elseif ($unit == 'TB') {
|
} elseif ($unit == 'TB') {
|
||||||
return $datalimit * 1024 * 1000 * 1000 * 1000;
|
return $datalimit * 1099511627776;
|
||||||
} else {
|
} else {
|
||||||
return $datalimit;
|
return $datalimit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue