diff -ur mythtv-0.25.2.orig/programs/mythbackend/scheduler.cpp mythtv-0.25.2/programs/mythbackend/scheduler.cpp
old
|
new
|
|
4368 | 4368 | } |
4369 | 4369 | |
4370 | 4370 | // prefer dirs with less weight (disk I/O) over dirs with more weight |
| 4371 | // if weights are equal, prefer dirs with more absolute free space |
| 4372 | // over less |
4371 | 4373 | static bool comp_storage_disk_io(FileSystemInfo *a, FileSystemInfo *b) |
4372 | 4374 | { |
4373 | 4375 | if (a->getWeight() < b->getWeight()) |
| 4376 | { |
4374 | 4377 | return true; |
| 4378 | } |
| 4379 | else if (a->getWeight() == b->getWeight()) |
| 4380 | { |
| 4381 | if (a->getFreeSpace() > b->getFreeSpace()) |
| 4382 | return true; |
| 4383 | } |
4375 | 4384 | |
4376 | 4385 | return false; |
4377 | 4386 | } |