Avoid disk-buffer error on startup. (again)
authorBen Loftis <ben@harrisonconsoles.com>
Sat, 17 Feb 2018 18:14:56 +0000 (12:14 -0600)
committerBen Loftis <ben@harrisonconsoles.com>
Sat, 17 Feb 2018 18:15:33 +0000 (12:15 -0600)
gtk2_ardour/disk_space_gauge.cc

index 9f22aea09a5da8ed559625fef58ea67288dfd4a6..acc2525b7f0f707f936b7b2ca59192fb20863535 100644 (file)
@@ -59,7 +59,7 @@ DiskSpaceGauge::set_available_disk_sec (float sec)
 float
 DiskSpaceGauge::level () const {
        static const float six_hours = 6.f * 3600.f;
-       if (_sec < 0) return 1.0;
+       if (_sec < 0) return 0.0;
        if (_sec > six_hours) return 0.0;
        return (1.0 - (_sec / six_hours));
 }