|
|
@@ -2,8 +2,9 @@
|
|
|
<head lang="zh-Hans-CN">
|
|
|
<meta charset="UTF-8" />
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
- <meta name="description" content="{hostname} 的资源占用" />
|
|
|
+ <meta name="description" content="{hostname} 的资源占用,基于 swaybien/swb-sys-monitor" />
|
|
|
<meta name="keywords" content="资源占用,效率工具" />
|
|
|
+ <meta name="author" content="swaybien, pj568" />
|
|
|
<meta http-equiv="refresh" content="10" />
|
|
|
<link
|
|
|
rel="icon"
|
|
|
@@ -17,18 +18,18 @@
|
|
|
<legend>{hostname} 的资源占用</legend>
|
|
|
<fieldset>
|
|
|
<legend>处理器</legend>
|
|
|
- <p>总体使用率:<progress value="{cpu_percent}" max="100">{cpu_percent}%</progress></p>
|
|
|
- <p>用户态:<progress value="{cpu_user_percent}" max="100">{cpu_user_percent}%</p></progress></p>
|
|
|
- <p>内核态:<progress value="{cpu_system_percent}" max="100">{cpu_system_percent}%</progress></p>
|
|
|
- <p>低优先级:<progress value="{cpu_nice_percent}" max="100">{cpu_nice_percent}%</progress></p>
|
|
|
+ <p>总体使用率:<progress title="{cpu_percent}%" value="{cpu_percent}" max="100">{cpu_percent}%</progress></p>
|
|
|
+ <p>用户态:<progress title="{cpu_user_percent}%" value="{cpu_user_percent}" max="100">{cpu_user_percent}%</p></progress></p>
|
|
|
+ <p>内核态:<progress title="{cpu_system_percent}%" value="{cpu_system_percent}" max="100">{cpu_system_percent}%</progress></p>
|
|
|
+ <p>低优先级:<progress title="{cpu_nice_percent}%" value="{cpu_nice_percent}" max="100">{cpu_nice_percent}%</progress></p>
|
|
|
</fieldset>
|
|
|
{cpu_cores_section}
|
|
|
<fieldset>
|
|
|
<legend>内存</legend>
|
|
|
- <p>已用:<progress value="{memory_used_mb}" max="{memory_total_mb}">{memory_used_mb}/{memory_total_mb}MB</progress></p>
|
|
|
- <p>可用:<progress value="{memory_available_mb}" max="{memory_total_mb}">{memory_available_mb}/{memory_total_mb}MB</progress></p>
|
|
|
- <p>缓存:<progress value="{memory_cached_mb}" max="{memory_total_mb}">{memory_cached_mb}/{memory_total_mb}MB</progress></p>
|
|
|
- <p>空闲:<progress value="{memory_free_mb}" max="{memory_total_mb}">{memory_free_mb}/{memory_total_mb}MB</progress></p>
|
|
|
+ <p>已用:<progress title="{memory_used_mb}/{memory_total_mb}MB" value="{memory_used_mb}" max="{memory_total_mb}">{memory_used_mb}/{memory_total_mb}MB</progress></p>
|
|
|
+ <p>可用:<progress title="{memory_available_mb}/{memory_total_mb}MB" value="{memory_available_mb}" max="{memory_total_mb}">{memory_available_mb}/{memory_total_mb}MB</progress></p>
|
|
|
+ <p>缓存:<progress title="{memory_cached_mb}/{memory_total_mb}MB" value="{memory_cached_mb}" max="{memory_total_mb}">{memory_cached_mb}/{memory_total_mb}MB</progress></p>
|
|
|
+ <p>空闲:<progress title="{memory_free_mb}/{memory_total_mb}MB" value="{memory_free_mb}" max="{memory_total_mb}">{memory_free_mb}/{memory_total_mb}MB</progress></p>
|
|
|
</fieldset>
|
|
|
<fieldset>
|
|
|
<legend>时间戳</legend>
|