diff options
author | Andrew Dolgov <[email protected]> | 2008-01-23 15:29:24 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-01-23 15:29:24 +0100 |
commit | 73d3b9b1f6a4fb509af4085a9944713aff4f7655 (patch) | |
tree | 9c80dfae472fed457b61a27d967a69698a3abf6e /update_daemon2_client.php | |
parent | 884c0a367b17d22d154fdb022c496b3e4ac777a8 (diff) |
update_daemon2: don't expect client part to be executable
Diffstat (limited to 'update_daemon2_client.php')
-rw-r--r-- | update_daemon2_client.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/update_daemon2_client.php b/update_daemon2_client.php index ff3ac1d33..8934cbe49 100644 --- a/update_daemon2_client.php +++ b/update_daemon2_client.php @@ -3,6 +3,8 @@ // define('DEFAULT_ERROR_LEVEL', E_ALL); define('DEFAULT_ERROR_LEVEL', E_ERROR | E_WARNING | E_PARSE); + $start_timestamp = time(); + if ($argv[1] != "SRV_RUN_OK") { die("This script should be started by update_daemon2.php.\n"); } @@ -156,5 +158,7 @@ if (DAEMON_SENDS_DIGESTS) send_headlines_digests($link); + print "Elapsed time: " . (time() - $start_timestamp) . " second(s)\n"; + db_close($link); ?> |