|  | @@ 130-134 (lines=5) @@ | 
                                                            
                                    | 127 |  |         $minutes = '00'; | 
                                                            
                                    | 128 |  |         $hours = 'H'; | 
                                                            
                                    | 129 |  |         switch ($cleanup_frequency) { | 
                                                            
                                    | 130 |  |             case '5-minutes' : | 
                                                            
                                    | 131 |  |                 $minutes = floor((int)date('i', $timestamp) / 5) * 5; | 
                                                            
                                    | 132 |  |                 $minutes = str_pad($minutes, 2, '0', STR_PAD_LEFT); | 
                                                            
                                    | 133 |  |                 $offset = MINUTE_IN_SECONDS * 5; | 
                                                            
                                    | 134 |  |                 break; | 
                                                            
                                    | 135 |  |             case '15-minutes' : | 
                                                            
                                    | 136 |  |                 $minutes = floor((int)date('i', $timestamp) / 15) * 15; | 
                                                            
                                    | 137 |  |                 $minutes = str_pad($minutes, 2, '0', STR_PAD_LEFT); | 
                                                                                
                                |  | @@ 135-139 (lines=5) @@ | 
                                                            
                                    | 132 |  |                 $minutes = str_pad($minutes, 2, '0', STR_PAD_LEFT); | 
                                                            
                                    | 133 |  |                 $offset = MINUTE_IN_SECONDS * 5; | 
                                                            
                                    | 134 |  |                 break; | 
                                                            
                                    | 135 |  |             case '15-minutes' : | 
                                                            
                                    | 136 |  |                 $minutes = floor((int)date('i', $timestamp) / 15) * 15; | 
                                                            
                                    | 137 |  |                 $minutes = str_pad($minutes, 2, '0', STR_PAD_LEFT); | 
                                                            
                                    | 138 |  |                 $offset = MINUTE_IN_SECONDS * 15; | 
                                                            
                                    | 139 |  |                 break; | 
                                                            
                                    | 140 |  |             case '12-hours' : | 
                                                            
                                    | 141 |  |                 $hours = floor((int)date('H', $timestamp) / 12) * 12; | 
                                                            
                                    | 142 |  |                 $hours = str_pad($hours, 2, '0', STR_PAD_LEFT); | 
                                                                                
                                |  | @@ 140-144 (lines=5) @@ | 
                                                            
                                    | 137 |  |                 $minutes = str_pad($minutes, 2, '0', STR_PAD_LEFT); | 
                                                            
                                    | 138 |  |                 $offset = MINUTE_IN_SECONDS * 15; | 
                                                            
                                    | 139 |  |                 break; | 
                                                            
                                    | 140 |  |             case '12-hours' : | 
                                                            
                                    | 141 |  |                 $hours = floor((int)date('H', $timestamp) / 12) * 12; | 
                                                            
                                    | 142 |  |                 $hours = str_pad($hours, 2, '0', STR_PAD_LEFT); | 
                                                            
                                    | 143 |  |                 $offset = HOUR_IN_SECONDS * 12; | 
                                                            
                                    | 144 |  |                 break; | 
                                                            
                                    | 145 |  |             case 'day' : | 
                                                            
                                    | 146 |  |                 $hours = '03'; // run cleanup at 3:00 am (or first site hit after that) | 
                                                            
                                    | 147 |  |                 $offset = DAY_IN_SECONDS; |