Skip to content

Commit

Permalink
fix(status): fix current QPS is per minute
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 17, 2024
1 parent 470151b commit 3c8f4f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/status/client/analytics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {} from '@koishijs/plugin-analytics/src'
const AnalyticNumber = inject('component:analytic-number')
const current = computed(() => {
return Object.values(store.status.bots).reduce((acc, bot) => acc + bot.messageReceived, 0)
return Object.values(store.status.bots).reduce((acc, bot) => acc + bot.messageReceived, 0) / 60
})
const recent = computed(() => {
Expand Down
2 changes: 1 addition & 1 deletion plugins/status/client/bots/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</template>
</template>
<template v-for="(count, status) in statusMap" :key="status">
<template v-if="count > 5">
<template v-if="count >= 10">
<status-light :class="status"></status-light>
<span class="count">×{{ count }}</span>
</template>
Expand Down
2 changes: 1 addition & 1 deletion plugins/status/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koishijs/plugin-status",
"description": "Status view for Koishi",
"version": "7.4.6",
"version": "7.4.7",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
Expand Down

0 comments on commit 3c8f4f1

Please sign in to comment.