Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Feb 3, 2024
1 parent 1104c9c commit f211751
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ Telegram:[@lgc2333](https://t.me/lgc2333)

## 📝 更新日志

### 1.0.3

- 修复了当有读取数据出错的分区时图片无法正常渲染的 Bug

### 1.0.2

- 修复了背景图还没加载就出图的 Bug(希望),顺带调整了一下附加 JS 的写法
Expand Down
2 changes: 1 addition & 1 deletion nonebot_plugin_picstatus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
if config.ps_only_su:
usage += "\n注意:仅SuperUser可以使用此指令"

__version__ = "1.0.2"
__version__ = "1.0.3"
__plugin_meta__ = PluginMetadata(
name="PicStatus",
description="以图片形式显示当前设备的运行状态",
Expand Down
5 changes: 4 additions & 1 deletion nonebot_plugin_picstatus/res/templates/disk.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<div class="label">{{ it.used | auto_convert_unit }} / {{ it.total | auto_convert_unit }}</div>
{% endif %}
</div>
<div class="align-right">{{ '{0:.1f}%'.format(it.percent) }}</div>
<div class="align-right">
{%- if it.percent %}{{ '{0:.1f}%'.format(it.percent) }}
{%- else %}??.?%{% endif -%}
</div>
{% endfor %}
</div>

Expand Down

0 comments on commit f211751

Please sign in to comment.