Skip to content

Commit

Permalink
fix: 可能为 undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Oct 27, 2024
1 parent 9f96d34 commit 075aa25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ export class Server {
cluster.pendingTraffic = 0;
ack([null, keepAliveData.time]);
this.db.update(cluster);
this.stats.filter(c => c.id === cluster.clusterId).forEach(s => s.addData({ hits: hits, bytes: traffic }));
this.stats.filter(c => c.id === cluster.clusterId).forEach(s => s.addData({ hits: Number(hits), bytes: Number(traffic) }));
}
});

Expand Down

0 comments on commit 075aa25

Please sign in to comment.