@@ -447,7 +447,7 @@ public function history( $days = 1 ) {
447447 $ return = array ();
448448 $ history = get_option ( self ::META_KEYS ['history ' ], array () );
449449 $ plan = ! empty ( $ this ->usage ['plan ' ] ) ? $ this ->usage ['plan ' ] : $ this ->credentials ['cloud_name ' ];
450- for ( $ i = 1 ; $ i <= $ days ; $ i ++ ) {
450+ for ( $ i = 1 ; $ i <= $ days ; $ i ++ ) {
451451 $ date = date_i18n ( 'd-m-Y ' , strtotime ( '- ' . $ i . ' days ' ) );
452452 if ( ! isset ( $ history [ $ plan ][ $ date ] ) || is_wp_error ( $ history [ $ plan ][ $ date ] ) ) {
453453 $ history [ $ plan ][ $ date ] = $ this ->api ->usage ( $ date );
@@ -696,7 +696,7 @@ public function setup() {
696696 * Setup Status cron.
697697 */
698698 protected function setup_status_cron () {
699- Cron::register_process ( 'check_status ' , array ( $ this , 'check_status ' ), HOUR_IN_SECONDS );
699+ Cron::register_process ( 'check_status ' , array ( $ this , 'check_status ' ), DAY_IN_SECONDS );
700700 }
701701
702702 /**
@@ -705,7 +705,7 @@ protected function setup_status_cron() {
705705 * @return void
706706 */
707707 protected function setup_rest_api_cron () {
708- Cron::register_process ( 'rest_api ' , array ( $ this , 'check_rest_api_connectivity ' ), HOUR_IN_SECONDS );
708+ Cron::register_process ( 'rest_api ' , array ( $ this , 'check_rest_api_connectivity ' ), DAY_IN_SECONDS );
709709 }
710710
711711 /**
0 commit comments