We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd6f7be commit fe49573Copy full SHA for fe49573
server/cron/nanotpsStats.js
@@ -12,9 +12,9 @@ const doNanoTpsStats = async () => {
12
13
const { send: sends, receive: receives, change: changes } = await res.json();
14
15
- let send = sends[sends.length - 1];
16
- let receive = receives[receives.length - 1];
17
- let change = changes[changes.length - 1];
+ let send = sends[0];
+ let receive = receives[0];
+ let change = changes[0];
18
19
const stats = { send, receive, change };
20
@@ -32,3 +32,5 @@ cron.schedule("0 * * * *", async () => {
32
if (process.env.NODE_ENV === "production") {
33
doNanoTpsStats();
34
}
35
+
36
+doNanoTpsStats();
0 commit comments