mirror of
https://github.com/linuxmint/timeshift.git
synced 2024-08-16 20:10:39 +03:00
Update Device.vala
Changing to available_bytes instead of calculating the free bytes from (size_bytes - used_bytes) respects potential reserved space for "for root only" e.g. on ext4 file systems. It should prevent running out of space in the unfavorable cases having the timeshift archive located on the actual root file system.
This commit is contained in:
parent
d29a7ab6be
commit
6d2599fc52
@ -119,7 +119,7 @@ public class Device : GLib.Object{
|
||||
|
||||
public uint64 free_bytes{
|
||||
get{
|
||||
return (used_bytes == 0) ? 0 : (size_bytes - used_bytes);
|
||||
return (used_bytes == 0) ? 0 : (available_bytes);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user