Skip to content

Commit

Permalink
fix: dashboard time span
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Jan 6, 2025
1 parent 93068f4 commit 00cf94d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/aiproxy/controller/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ func getDashboardTime(t string) (time.Time, time.Time, time.Duration) {
timeSpan = time.Hour * 24
case "two_week":
start = end.AddDate(0, 0, -15)
timeSpan = time.Hour * 12
timeSpan = time.Hour * 24
case "week":
start = end.AddDate(0, 0, -7)
timeSpan = time.Hour * 6
timeSpan = time.Hour * 24
case "day":
fallthrough
default:
Expand Down

0 comments on commit 00cf94d

Please sign in to comment.