Transpiled version (34L) is out of date.
1 | // age = age in days, lastAge = age of last (more recent) file kept (also in days) |
2 | sbool defaultAgeBasedBackupRetentionStrategy_shouldKeep(double age, double lastAge) {
|
3 | if (age <= 1/24.0) true; // keep all backups within last hour |
4 | if (age <= 0.5 && age >= lastAge+1/24.0) true; // keep hourly backups within last 12 hours |
5 | if (age <= 7 && age >= lastAge+1) true; // keep every daily backup from this week |
6 | if (age <= 28 && age >= lastAge+7) true; // weekly backups for 3 more weeks |
7 | if (age >= lastAge+365.0/12) true; // after 4 weeks, switch to monthly (roundabout) |
8 | false; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1024349 |
| Snippet name: | defaultAgeBasedBackupRetentionStrategy_shouldKeep |
| Eternal ID of this version: | #1024349/6 |
| Text MD5: | e8bc772c172af3664c489f51bee23142 |
| Author: | stefan |
| Category: | javax / html |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2025-04-20 16:48:16 |
| Source code size: | 592 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 2926 / 3324 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |