mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Change default file size on media info tables to SI units
This commit is contained in:
parent
8fdd0ba0d9
commit
04765288d7
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ $('*').on('click', '.refresh_pms_image', function (e) {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Taken from http://stackoverflow.com/questions/10420352/converting-file-size-in-bytes-to-human-readable#answer-14919494
|
// Taken from http://stackoverflow.com/questions/10420352/converting-file-size-in-bytes-to-human-readable#answer-14919494
|
||||||
function humanFileSize(bytes, si) {
|
function humanFileSize(bytes, si = true) {
|
||||||
var thresh = si ? 1000 : 1024;
|
var thresh = si ? 1000 : 1024;
|
||||||
if (Math.abs(bytes) < thresh) {
|
if (Math.abs(bytes) < thresh) {
|
||||||
return bytes + ' B';
|
return bytes + ' B';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue