mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-06-22 00:41:54 +00:00
added disk usage and si units
This commit is contained in:
@ -191,7 +191,7 @@ export default {
|
||||
*
|
||||
* @return Formatted string.
|
||||
*/
|
||||
humanFileSize(bytes, si = false, dp = 1) {
|
||||
humanFileSize(bytes, si = true, dp = 1) {
|
||||
const thresh = si ? 1000 : 1024;
|
||||
|
||||
if (Math.abs(bytes) < thresh) {
|
||||
|
Reference in New Issue
Block a user