mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
🐛 fix(alert): 添加报警规则
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
/**
|
||||
* Converts a long string of bytes into a readable format e.g KB, MB, GB, TB, YB
|
||||
*
|
||||
* @param {Int} num The number of bytes.
|
||||
*/
|
||||
function readableBytes(bytes) {
|
||||
var i = Math.floor(Math.log(bytes) / Math.log(1024)),
|
||||
sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
||||
|
||||
return (bytes / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + sizes[i];
|
||||
return (bytes / Math.pow(1024, i)).toFixed(0) + ' ' + sizes[i];
|
||||
}
|
||||
|
||||
const confirmBtn = $('.mini.confirm.modal .positive.button')
|
||||
|
||||
Reference in New Issue
Block a user