hotfix #30

Merged
李寻欢 merged 2 commits from hotfix into main 2024-03-13 10:03:10 +08:00
4 changed files with 4 additions and 4 deletions
Showing only changes of commit 8ddc40cc01 - Show all commits

View File

@ -79,7 +79,7 @@ func dealMonth(gid string) {
var medianCount int64
for idx, v := range records {
msgCount += v.Count
if idx == len(records)/2 {
if idx == (len(records)/2)-1 {
medianCount = v.Count
}
}

View File

@ -78,7 +78,7 @@ func dealWeek(gid string) {
var medianCount int64
for idx, v := range records {
msgCount += v.Count
if idx == len(records)/2 {
if idx == (len(records)/2)-1 {
medianCount = v.Count
}
}

View File

@ -78,7 +78,7 @@ func dealYear(gid string) {
var medianCount int64
for idx, v := range records {
msgCount += v.Count
if idx == len(records)/2 {
if idx == (len(records)/2)-1 {
medianCount = v.Count
}
}

View File

@ -80,7 +80,7 @@ func dealYesterday(gid string) {
var medianCount int64
for idx, v := range records {
msgCount += v.Count
if idx == len(records)/2 {
if idx == (len(records)/2)-1 {
medianCount = v.Count
}
}