1
mirror of https://github.com/rclone/rclone synced 2025-03-27 11:02:44 +01:00
Nick Craig-Wood 1e1af46a12 union: fix get free space for remotes which don't support it
Before this fix GetFreeSpace returned math.MaxInt64 for remotes which
don't support reading free space, however this is used in various
comparison routines as a too large value, meaning that remotes of size
math.MaxInt64 were never being selected.

This fixes GetFreeSpace to return math.MaxInt64 - 1 so then can be selected.

It also fixes GetUsedSpace the same way however as the default for not
supported was 0 this was very unlikely to have ever caused a problem.
2022-06-16 22:13:50 +01:00
..
2021-10-20 22:56:19 +02:00
2022-06-08 18:29:42 +01:00
2022-05-13 12:08:10 +01:00
2022-01-26 00:02:17 +01:00
2022-05-13 12:08:10 +01:00
2022-06-16 15:45:42 +02:00
2022-05-13 12:08:10 +01:00
2022-05-12 20:43:54 +01:00