From 977e23e0ff5faec0bf7af8b46f76f804e533f721 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Mon, 15 Oct 2018 09:58:05 +0800 Subject: [PATCH] x86 luci menmory in MB --- package/lean/autocore/Makefile | 2 +- package/lean/autocore/files/index.htm | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package/lean/autocore/Makefile b/package/lean/autocore/Makefile index 091db206e..341fb904d 100644 --- a/package/lean/autocore/Makefile +++ b/package/lean/autocore/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=autocore PKG_VERSION:=1 -PKG_RELEASE:=11 +PKG_RELEASE:=12 include $(INCLUDE_DIR)/package.mk diff --git a/package/lean/autocore/files/index.htm b/package/lean/autocore/files/index.htm index 7112337a9..d5026b30a 100644 --- a/package/lean/autocore/files/index.htm +++ b/package/lean/autocore/files/index.htm @@ -639,32 +639,32 @@ if (e = document.getElementById('memtotal')) e.innerHTML = progressbar( - ((info.memory.free + info.memory.buffered) / 1024) + " <%:kB%>", - (info.memory.total / 1024) + " <%:kB%>" + Math.floor((info.memory.free + info.memory.buffered) / 1048576) + " <%:MB%>", + Math.floor(info.memory.total / 1048576) + " <%:MB%>" ); if (e = document.getElementById('memfree')) e.innerHTML = progressbar( - (info.memory.free / 1024) + " <%:kB%>", - (info.memory.total / 1024) + " <%:kB%>" + Math.floor(info.memory.free / 1048576) + " <%:MB%>", + Math.floor(info.memory.total / 1048576) + " <%:MB%>" ); if (e = document.getElementById('membuff')) e.innerHTML = progressbar( - (info.memory.buffered / 1024) + " <%:kB%>", - (info.memory.total / 1024) + " <%:kB%>" + Math.floor(info.memory.buffered / 1048576) + " <%:MB%>", + Math.floor(info.memory.total / 1048576) + " <%:MB%>" ); if (e = document.getElementById('swaptotal')) e.innerHTML = progressbar( - (info.swap.free / 1024) + " <%:kB%>", - (info.swap.total / 1024) + " <%:kB%>" + Math.floor(info.swap.free / 1048576) + " <%:MB%>", + Math.floor(info.swap.total / 1048576) + " <%:MB%>" ); if (e = document.getElementById('swapfree')) e.innerHTML = progressbar( - (info.swap.free / 1024) + " <%:kB%>", - (info.swap.total / 1024) + " <%:kB%>" + Math.floor(info.swap.free / 1048576) + " <%:MB%>", + Math.floor(info.swap.total / 1048576) + " <%:MB%>" ); if (e = document.getElementById('conns'))