|
通过http://www.jianshu.com/p/bfb93c4e8dc9介绍,找出是/usr/lib/lua/luci/view/admin_status/index.htm
我尝试增加
if (e = document.getElementById('memcache'))
e.innerHTML = progressbar(
(info.memory.cached / 1024) + " <%:kB%>",
(info.memory.total / 1024) + " <%:kB%>"
);
和在这里修改为(粗体部分):
<fieldset class="cbi-section">
<legend><%:Memory%></legend>
<table width="100%" cellspacing="10">
<tr><td width="33%"><%:Total Available%></td><td id="memtotal">-</td></tr>
<tr><td width="33%"><%:Free%></td><td id="memfree">-</td></tr>
<tr><td width="33%"><%:Cached%></td><td id="memcache">-</td></tr>
<tr><td width="33%"><%:Buffered%></td><td id="membuff">-</td></tr>
</table>
</fieldset>
能成功在主页显示条目,但内容无效。
应该是参数info.memory.cached无效,请问该如何修改?
图:
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|