Author: aschnell Date: Thu Nov 6 16:52:50 2008 New Revision: 53009 URL: http://svn.opensuse.org/viewcvs/yast?rev=53009&view=rev Log: - correct size for swap devices 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=53009&r1=53008&r2=53009&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-dialogs.ycp (original) +++ trunk/storage/storage/src/include/ep-dialogs.ycp Thu Nov 6 16:52:50 2008 @@ -716,8 +716,13 @@ UI::ChangeWidget(`id(`graph), `Labels, BarGraphLabels([ min_size_k, size_k - min_size_k, max_size_k - size_k ])); - UI::ChangeWidget(`id(`free), `Value, sformat("%1: %2", FreeSpaceLabel(), - Storage::KByteToHumanString(size_k - used_k))); + // TODO: make two lables (size and free) and hide free for swap + if (used_fs == `swap) + UI::ChangeWidget(`id(`free), `Value, sformat("%1: %2", FreeSpaceLabel(), + Storage::KByteToHumanString(size_k))); + else + UI::ChangeWidget(`id(`free), `Value, sformat("%1: %2", FreeSpaceLabel(), + Storage::KByteToHumanString(size_k - used_k))); break; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org