From ebeaaedc8f4395afa220072eddf617bea81d59d0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 31 Dec 2005 14:18:22 +0000 Subject: - Patch 42498 by m3avrck: unified cron-trackers and added a section that lets you figure out whether cron is running (usability improvement). --- modules/drupal/drupal.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/drupal/drupal.module') diff --git a/modules/drupal/drupal.module b/modules/drupal/drupal.module index c42d2c134..fe25a0f3b 100644 --- a/modules/drupal/drupal.module +++ b/modules/drupal/drupal.module @@ -74,8 +74,7 @@ function drupal_settings() { * Implementation of hook_cron(); handles pings to and from the site. */ function drupal_cron() { - if (time() - variable_get('drupal_cron_last', 0) > 21600) { - variable_set('drupal_cron_last', time()); + if (time() - variable_get('cron_last', 0) > 21600) { // If this site acts as a Drupal XML-RPC server, delete the sites that // stopped sending "ping" messages. -- cgit v1.2.3