mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-26 07:44:10 +08:00
fixbug
This commit is contained in:
@@ -3,12 +3,6 @@ body {
|
||||
font-family: "WenQuanYi Micro Hei", "WenQuanYi Zen Hei", "Microsoft YaHei", arial, sans-serif;
|
||||
font-size: 16px;
|
||||
|
||||
#page-alert,
|
||||
#page-success {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
> header {
|
||||
background: #563d7c;
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ module.exports =
|
||||
}
|
||||
|
||||
storage_usage: do ->
|
||||
usage = monitor.storage_usage[account.username]
|
||||
usage.size_used = parseInt(usage.size_used) + plugin_storage.mysql * 1000 + plugin_storage.mongodb * 1000
|
||||
usage = monitor.storage_usage[account.username] ? {}
|
||||
usage.size_used = parseInt(usage?.size_used ? 0) + plugin_storage.mysql * 1000 + plugin_storage.mongodb * 1000
|
||||
now_per = (usage.size_used / 1000 / account.attribute.resources_limit.storage * 100).toFixed()
|
||||
return {
|
||||
now_per: now_per
|
||||
|
||||
Reference in New Issue
Block a user