Skip to content

Commit

Permalink
fix(frontend): server metrics look strange after reload (#14467)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyoshoka committed Aug 30, 2024
1 parent 7fe3035 commit 3fe7e37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

### Client
- サイズ制限を超過するファイルをアップロードしようとした際にエラーを出すように
- Fix: サーバーメトリクスが2つ以上あるとリロード直後の表示がおかしくなる問題を修正

### Server
- ファイルがサイズの制限を超えてアップロードされた際にエラーを返さなかった問題を修正
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/widgets/server-metric/cpu-mem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function onStats(connStats: Misskey.entities.ServerStats) {
}
function onStatsLog(statsLog: Misskey.entities.ServerStatsLog) {
for (const revStats of statsLog.reverse()) {
for (const revStats of statsLog.toReversed()) {
onStats(revStats);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/widgets/server-metric/net.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function onStats(connStats: Misskey.entities.ServerStats) {
}
function onStatsLog(statsLog: Misskey.entities.ServerStatsLog) {
for (const revStats of statsLog.reverse()) {
for (const revStats of statsLog.toReversed()) {
onStats(revStats);
}
}
Expand Down

0 comments on commit 3fe7e37

Please sign in to comment.