Ticket #124: scheduler.diff

File scheduler.diff, 1.0 KB (added by walterhw@…, 20 years ago)

svn diff file

  • scheduler.cpp

     
    11851185                                             .arg(idleTimeoutSecs);
    11861186                                VERBOSE(VB_ALL, msg);
    11871187                            }
    1188                             else if (itime % 10 == 0)
     1188                            else if (itime % 60 == 0)
    11891189                            {
    11901190                                msg = QString("%1 secs left to system "
    11911191                                              "shutdown!")
     
    12161216    if (!preSDWUCheckCommand.isEmpty())
    12171217    {
    12181218        state = myth_system(preSDWUCheckCommand.ascii());
    1219                      
    1220         if (WIFEXITED(state) && state != -1)
     1219
     1220        if (GENERIC_EXIT_NOT_OK != state)
    12211221        {
    12221222            retval = false;
    1223             switch(WEXITSTATUS(state))
     1223            switch(state)
    12241224            {
    12251225                case 0:
    12261226                    retval = true;