[yast-commit] r55336 - /trunk/storage/storage/src/include/ep-dialogs.ycp
Author: aschnell Date: Mon Feb 9 11:57:23 2009 New Revision: 55336 URL: http://svn.opensuse.org/viewcvs/yast?rev=55336&view=rev Log: - normal rounding during resize of partitions Modified: trunk/storage/storage/src/include/ep-dialogs.ycp Modified: trunk/storage/storage/src/include/ep-dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-dialogs.ycp?rev=55336&r1=55335&r2=55336&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-dialogs.ycp (original) +++ trunk/storage/storage/src/include/ep-dialogs.ycp Mon Feb 9 11:57:23 2009 @@ -787,8 +787,9 @@ { case `primary: case `logical: - data["region", 1] = Integer::Clamp(PartedSizeToCly((tofloat(size_k*1024)), cyl_size), - 1, data["region", 1]:0 + free_cyl_after); + integer num_cyl = tointeger(1024.0 * size_k / cyl_size + 0.5); + num_cyl = Integer::Clamp(num_cyl, 1, data["region", 1]:0 + free_cyl_after); + data["region", 1] = num_cyl; break; case `lvm: -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org