| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <!DOCTYPE html>
- <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} 的资源占用,基于 swaybien/swb-sys-monitor" />
- <meta name="keywords" content="资源占用,效率工具" />
- <meta name="author" content="swaybien, pj568" />
- <meta http-equiv="refresh" content="{ttl}" />
- <link
- rel="icon"
- type="image/svg+xml"
- href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E📊%3C/text%3E%3C/svg%3E"
- />
- <title>{hostname} 资源占用</title>
- </head>
- <body>
- <fieldset>
- <legend>{hostname} 的资源占用</legend>
- <fieldset>
- <legend>处理器</legend>
- <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 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>
- <p>{timestamp}</p>
- </fieldset>
- </fieldset>
- </body>
- </html>
|