Commit 713e891
committed
fix: correct rate limiting calculation to prevent incorrect delay display
- Fixed rate limiting logic in Task.ts to properly handle undefined lastGlobalApiRequestTime
- Added check for rateLimit > 0 before applying rate limiting
- Simplified calculation to only apply delay when there's actually time remaining
- This prevents the incorrect '15903 seconds' message reported in issue #77701 parent 2571781 commit 713e891
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2528 | 2528 | | |
2529 | 2529 | | |
2530 | 2530 | | |
2531 | | - | |
| 2531 | + | |
| 2532 | + | |
2532 | 2533 | | |
2533 | 2534 | | |
2534 | | - | |
2535 | | - | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
2536 | 2540 | | |
2537 | 2541 | | |
2538 | 2542 | | |
| |||
0 commit comments