From d4cf8c6020c46e5dc97b75f3a9781ddc15416b3a Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sat, 29 Jan 2005 09:35:52 +0000 Subject: fix 1505 and suck sysinfo files into the tree instead of cross referencing eventually we may find that graph and load are of universal usage, then they should appear in some kind of library --- (limited to 'noncore/applets/memoryapplet/swapfile.cpp') diff --git a/noncore/applets/memoryapplet/swapfile.cpp b/noncore/applets/memoryapplet/swapfile.cpp index 96010c8..4609c13 100644 --- a/noncore/applets/memoryapplet/swapfile.cpp +++ b/noncore/applets/memoryapplet/swapfile.cpp @@ -90,7 +90,7 @@ Swapfile::Swapfile( QWidget *parent, const char *name, WFlags f ) QHBox *hb3 = new QHBox(box1); hb3->setSpacing(5); swapSize = new QComboBox(hb3); - swapSize->insertStringList(QStringList::split(",", tr("2 Mb,4 Mb,6 Mb,8 Mb"))); + swapSize->insertStringList(QStringList::split(",", tr("2 Mb,4 Mb,6 Mb,8 Mb,16 Mb,32 Mb,64 Mb"))); mkswapProgress = new QProgressBar(3, hb3); mkswapProgress->setCenterIndicator(true); @@ -343,6 +343,13 @@ void Swapfile::makeswapfile() break; case 3: rc=exec(QString("dd if=/dev/zero of=%1 bs=1k count=8192").arg(swapPath1->text())); break; + case 4: rc=exec(QString("dd if=/dev/zero of=%1 bs=1k count=16384").arg(swapPath1->text())); + break; + case 5: rc=exec(QString("dd if=/dev/zero of=%1 bs=1k count=32768").arg(swapPath1->text())); + break; + case 6: rc=exec(QString("dd if=/dev/zero of=%1 bs=1k count=65536").arg(swapPath1->text())); + break; + } if (rc != 0) { setStatusMessage(tr("Failed to create swapfile."), true); @@ -431,6 +438,12 @@ void Swapfile::status() break; case 8: swapSize->setCurrentItem(3); break; + case 16: swapSize->setCurrentItem(4); + break; + case 32: swapSize->setCurrentItem(5); + break; + case 64: swapSize->setCurrentItem(6); + break; } -- cgit v0.9.0.2