minimum root size calc

This commit is contained in:
Ward from fusion-voyager-3 2024-01-30 17:30:01 +03:00
parent ff6ed36a05
commit 0db98f106e
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
pika-installer-gtk4 (1.0.0-100pika5) pikauwu; urgency=low
pika-installer-gtk4 (1.0.0-100pika6) pikauwu; urgency=low
* First release

View File

@ -141,6 +141,8 @@ pub fn install_page(done_main_box: &gtk::Box, install_main_box: &gtk::Box ,conte
let mut target_p3_size = 0.0;
if (target_size * 40.0) / 100.0 >= 150000000000.0 {
target_p3_size = 150000000000.0 ;
} else if (target_size * 40.0) / 100.0 <= 42949672960.0 {
target_p3_size = 42949672960.0 ;
} else {
target_p3_size = (target_size * 40.0) / 100.0 ;
}