Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: status + mysql 统计每小时发言数会全部统计到 0:00-1:00 区间 #536

Closed
Tracked by #522
idlist opened this issue Feb 21, 2022 · 4 comments
Closed
Tracked by #522
Labels
bug BUG

Comments

@idlist
Copy link
Contributor

idlist commented Feb 21, 2022

Describe the bug

听说隔壁 mongo 没有这个问题

Steps to reproduce

实例地址 https://bot.idl.ist

Expected behavior

那当然是每个时间段都有啦

Screenshots

image

Versions

  • OS: Win10
  • Platform: all
  • Node version: v16.3.0
  • Koishi version: v4.2.2

Additional context

No response

@idlist idlist added the bug BUG label Feb 21, 2022
@shigma shigma mentioned this issue Feb 21, 2022
12 tasks
@shigma shigma added this to the 4.4 milestone Feb 21, 2022
@DDEle
Copy link
Contributor

DDEle commented Feb 28, 2022

image
👆相关问题(也可能没那么相关

@shigma shigma closed this as completed in 31c5905 Mar 4, 2022
@idlist idlist reopened this May 1, 2022
@idlist
Copy link
Contributor Author

idlist commented May 1, 2022

现在用的版本是 v4.5.2,我还是有这个问题,是不是得考虑捅库 🤔

先 reopen 一下,我本地删过库的版本也有这个问题

@idlist idlist removed this from the 4.4 milestone May 8, 2022
@idlist
Copy link
Contributor Author

idlist commented May 12, 2022

看了一下控制台又好了,看来是必须删表才能修复这个问题。

就是不知道是在哪个版本删表之后能修复这个问题,我服务器上的也是 v4.5.2,迁移服务器的时候顺手把 status 的几个表全删了,然后就好了。本地的全累计在一起估计是没删表的锅。

不过既然问题没了就先关了。

@idlist idlist closed this as completed May 12, 2022
@DDEle
Copy link
Contributor

DDEle commented May 14, 2022

看了一下控制台又好了,看来是必须删表才能修复这个问题。

就是不知道是在哪个版本删表之后能修复这个问题,我服务器上的也是 v4.5.2,迁移服务器的时候顺手把 status 的几个表全删了,然后就好了。本地的全累计在一起估计是没删表的锅。

不过既然问题没了就先关了。

看起来是之前 status_hourly 表的 time 字段被设置为了 DATE 类型...

如果别人出现类似问题的话也许可以先检查下这个点。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug BUG
Projects
None yet
Development

No branches or pull requests

3 participants