Skip to content

Commit

Permalink
log (sry)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSoZRious committed Mar 31, 2024
1 parent 44b573d commit 10955df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/server/src/models/history.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export class GameHistoryRepository {
})
})
const follow = others.map(x => Math.max(0, x - now)).reduce((acc, x) => acc + x)
const t = (1.0 + follow * 0.001) * vote
this.logger.info({follow, others, t, now})
await this.redis.incrBy(`game::${game_id}::${key}`, (1.0 + follow * 0.001) * vote)
}

Expand Down

0 comments on commit 10955df

Please sign in to comment.