mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 18:44:44 +00:00
(mvc) wrong default setter
This commit is contained in:
parent
e5d57a43f4
commit
4021045e31
@ -35,8 +35,11 @@
|
||||
* @param decimals decimal places
|
||||
* @return string
|
||||
*/
|
||||
function byteFormat(bytes, decimals=0)
|
||||
function byteFormat(bytes, decimals)
|
||||
{
|
||||
if (decimals == undefined) {
|
||||
decimals = 0;
|
||||
}
|
||||
var kb = 1024;
|
||||
var ndx = Math.floor( Math.log(bytes) / Math.log(kb) );
|
||||
var fileSizeTypes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user