| 7637 | |
| 7638 | |
| 7639 | void Slave::checkDiskUsage() |
| 7640 | { |
| 7641 | // TODO(vinod): We are making usage a Future, so that we can plug in |
| 7642 | // fs::usage() into async. |
| 7643 | // NOTE: We calculate disk usage of the file system on which the |
| 7644 | // slave work directory is mounted. |
| 7645 | Future<double>(::fs::usage(flags.work_dir)) |
| 7646 | .onAny(defer(self(), &Slave::_checkDiskUsage, lambda::_1)); |
| 7647 | } |
| 7648 | |
| 7649 | |
| 7650 | void Slave::_checkDiskUsage(const Future<double>& usage) |