We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de4ec3 commit 632223aCopy full SHA for 632223a
html/js/scriptin.js
@@ -1024,7 +1024,9 @@ function seconds_to_time(seconds) {
1024
}
1025
1026
function str_to_bytes(str) {
1027
- if (str.substr(-1) == 'G')
+ if (str.substr(-1) == 'T')
1028
+ return parseFloat(str) * Math.pow(10,12);
1029
+ else if (str.substr(-1) == 'G')
1030
return parseFloat(str) * Math.pow(10,9);
1031
else if (str.substr(-1) == 'M')
1032
return parseFloat(str) * Math.pow(10,6);
0 commit comments