Skip to content

Commit

Permalink
完善启动提示
Browse files Browse the repository at this point in the history
  • Loading branch information
osgochina committed Jan 22, 2015
1 parent b20a3bb commit 3b6833c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/include/Crontab.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,17 @@ static protected function run()
self::register_signal();
if (self::$checktime) {
$run = true;
Main::log_write("正在启动...");
while ($run) {
if (date("s") == 0) {
$s = date("s");
if ( $s == 0) {

TurnTable::init();
Crontab::load_config();
self::register_timer();
$run = false;
}else{
Main::log_write("启动倒计时 ".(60-$s)."");
sleep(1);
}
}
Expand Down

0 comments on commit 3b6833c

Please sign in to comment.