Ticket #4520: tracker_lowspace.patch

File tracker_lowspace.patch, 568 bytes (added by dustin howett, 15 years ago)

Aforementioned patch.

  • src/kits/tracker/Pose.cpp

     
    5454    off_t capacity = volume->Capacity();
    5555    int32 percent = static_cast<int32>(volume->FreeBytes() / (capacity / 100));
    5656
    57     // warn below 20 MB of free space (if this is less than 10% of free space)
    58     if (volume->FreeBytes() < 20 * 1024 * 1024 && percent < 10)
     57    // warn below 10% of free space
     58    if (percent < 10)
    5959        return -2 - percent;
    6060    return percent;
    6161}