SHA256
1
0
forked from pool/k3b
k3b/k3b-increase-tolerance.patch
Stephan Kulow bdde78acbb Accepting request 145798 from KDE:Distro:Factory
Add various bugfixes from upstream 2.0 branch (forwarded request 145797 from sumski)

OBS-URL: https://build.opensuse.org/request/show/145798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/k3b?expand=0&rev=48
2012-12-19 19:50:05 +00:00

29 lines
1.0 KiB
Diff

From: Kevin Kofler <kevin.kofler@chello.at>
Date: Sat, 17 Sep 2011 16:18:24 +0000
Subject: K3b::IsOverburnAllowed: Increase tolerance from 10% to 25%.
X-Git-Url: http://quickgit.kde.org/?p=k3b.git&a=commitdiff&h=b0df9e7771ac9148004187bb53ba13ac40b01cae
---
K3b::IsOverburnAllowed: Increase tolerance from 10% to 25%.
10% are not enough to allow using CD-R90 and CD-R99 media to full capacity.
The new 25% tolerance allows using those media while still catching the common
case of DVD ISO vs. CD media.
BUG: 276002
REVIEW: 102648
---
--- a/libk3b/core/k3bglobals.cpp
+++ b/libk3b/core/k3bglobals.cpp
@@ -595,7 +595,7 @@
bool K3b::IsOverburnAllowed( const Msf& projectSize, const Msf& capacity, const Msf& usedCapacity )
{
return( k3bcore->globalSettings()->overburn() &&
- (projectSize + usedCapacity) <= ( capacity.lba() - usedCapacity.lba() + capacity.lba() * 10 / 100 ) ); // 10% tolerance in overburn mode
+ (projectSize + usedCapacity) <= ( capacity.lba() - usedCapacity.lba() + capacity.lba() / 4 ) ); // 25% tolerance in overburn mode
}