Commit 595aff7
Optimize 24-hour stats loop in yourls-infos.php
- Reduce date() calls from 24 to 1
- Use sprintf and modular arithmetic for hour formatting
- Replace intval(date('U')) with time()
- Verified 100% output parity with original logic
Co-authored-by: projectedanx <238904666+projectedanx@users.noreply.github.com>1 parent e689d96 commit 595aff7
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
180 | 181 | | |
181 | | - | |
| 182 | + | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
0 commit comments