Skip to content

Commit

Permalink
fix: 修复某些情况下流量仪表盘今日实时流量排行抱错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xboard committed Feb 20, 2024
1 parent 53efe20 commit 3241ce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/StatisticalService.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ public function getStatServer()
$stats[] = [
'server_id' => $serverId,
'server_type' => $serverType,
'u' => $v[$serverId][0],
'd' => $v[$serverId][1],
'u' => $v[$serverId][0] ?: 0,
'd' => $v[$serverId][1] ?: 0,
];
}
}
Expand Down

0 comments on commit 3241ce6

Please sign in to comment.