mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-01 09:15:47 +01:00
explicitly specify the radix when parsing the arg to formatBytes()
This commit is contained in:
@@ -104,7 +104,7 @@ liberator.util = { //{{{
|
||||
{
|
||||
const unitVal = ["Bytes", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
|
||||
var unitIndex = 0;
|
||||
var tmpNum = parseInt(num) || 0;
|
||||
var tmpNum = parseInt(num, 10) || 0;
|
||||
var strNum = [tmpNum + ""];
|
||||
|
||||
if (humanReadable)
|
||||
|
||||
Reference in New Issue
Block a user