Changeset 18902 for trunk/FACT++
- Timestamp:
- 09/04/17 20:26:03 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r18654 r18902 2645 2645 2646 2646 struct statvfs vfs; 2647 statvfs("/ daq", &vfs);2648 2649 const uint64_t free daq= vfs.f_bsize*vfs.f_bavail;2647 statvfs("/newdata", &vfs); 2648 2649 const uint64_t free_newdata = vfs.f_bsize*vfs.f_bavail; 2650 2650 2651 2651 // ============================================================== … … 2712 2712 newerr |= SetError(!fPfMiniHumidityHist.empty() && fPfMiniHumidityHist.back()>50, 2713 2713 "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]°C");2714 newerr |= SetError(!fTemperatureControlHist.empty() && (fTemperatureControlHist.back()<18.0 || fTemperatureControlHist.back()>22.0), 2715 "Container temperature outside [18.0;22.0]°C"); 2716 2716 2717 2717 newerr |= SetError(!fMagicWeatherHist[kHum].empty() && fMagicWeatherHist[kHum].back()>98 && fDimLidControl.state()==Lid::State::kOpen, … … 2745 2745 "Less than 50GB disk space left on newdaq."); 2746 2746 2747 newerr |= SetError(free daq<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."); 2749 2749 2750 2750 newerr |= SetError(fDimPwrControl.state()==Power::State::kCoolingFailure, … … 3178 3178 3179 3179 col = HTML::kRed; 3180 if (free daq>uint64_t(999999999999))3180 if (free_newdata > uint64_t(999999999999)) 3181 3181 col = HTML::kYellow; 3182 if (free daq>uint64_t(149999999999))3182 if (free_newdata > uint64_t(149999999999)) 3183 3183 col = HTML::kGreen; 3184 if (free daq==UINT64_MAX)3184 if (free_newdata == UINT64_MAX) 3185 3185 col = HTML::kWhite; 3186 3186 3187 out << col << '\t' << Tools::Scientific(free daq) << "B\n";3187 out << col << '\t' << Tools::Scientific(free_newdata) << "B\n"; 3188 3188 3189 3189 out << HTML::kGreen << '\t' << dt.str().substr(0, dt.str().length()-7) << '\n';
Note:
See TracChangeset
for help on using the changeset viewer.