Changeset 18902 for trunk/FACT++


Ignore:
Timestamp:
09/04/17 20:26:03 (7 years ago)
Author:
dneise
Message:
Adjust container temp window; use /newdata instead of /daq
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/smartfact.cc

    r18654 r18902  
    26452645
    26462646        struct statvfs vfs;
    2647         statvfs("/daq", &vfs);
    2648 
    2649         const uint64_t freedaq = vfs.f_bsize*vfs.f_bavail;
     2647        statvfs("/newdata", &vfs);
     2648
     2649        const uint64_t free_newdata = vfs.f_bsize*vfs.f_bavail;
    26502650
    26512651        // ==============================================================
     
    27122712        newerr |= SetError(!fPfMiniHumidityHist.empty() && fPfMiniHumidityHist.back()>50,
    27132713                           "Camera humidity inside camera exceeds 50% (PFmini)");
    2714         newerr |= SetError(!fTemperatureControlHist.empty() && (fTemperatureControlHist.back()<25.5 || fTemperatureControlHist.back()>28.5),
    2715                            "Container temperature outside [25.5;28.5]&deg;C");
     2714        newerr |= SetError(!fTemperatureControlHist.empty() && (fTemperatureControlHist.back()<18.0 || fTemperatureControlHist.back()>22.0),
     2715                           "Container temperature outside [18.0;22.0]&deg;C");
    27162716
    27172717        newerr |= SetError(!fMagicWeatherHist[kHum].empty() && fMagicWeatherHist[kHum].back()>98 && fDimLidControl.state()==Lid::State::kOpen,
     
    27452745                           "Less than 50GB disk space left on newdaq.");
    27462746
    2747         newerr |= SetError(freedaq<uint64_t(800000000000),
    2748                            "Less than 800GB disk space left on daq.");
     2747        newerr |= SetError(free_newdata<uint64_t(800000000000),
     2748                           "Less than 800GB disk space left on /newdata.");
    27492749
    27502750        newerr |= SetError(fDimPwrControl.state()==Power::State::kCoolingFailure,
     
    31783178
    31793179            col = HTML::kRed;
    3180             if (freedaq>uint64_t(999999999999))
     3180            if (free_newdata > uint64_t(999999999999))
    31813181                col = HTML::kYellow;
    3182             if (freedaq>uint64_t(149999999999))
     3182            if (free_newdata > uint64_t(149999999999))
    31833183                col = HTML::kGreen;
    3184             if (freedaq==UINT64_MAX)
     3184            if (free_newdata == UINT64_MAX)
    31853185                col = HTML::kWhite;
    31863186
    3187             out << col << '\t' << Tools::Scientific(freedaq) << "B\n";
     3187            out << col << '\t' << Tools::Scientific(free_newdata) << "B\n";
    31883188
    31893189            out << HTML::kGreen << '\t' << dt.str().substr(0, dt.str().length()-7) << '\n';
Note: See TracChangeset for help on using the changeset viewer.