Home
last modified time | relevance | path

Searched refs:kMegaByte (Results 1 – 3 of 3) sorted by relevance

/haiku/src/apps/drivesetup/
H A DCreateParametersPanel.cpp40 static const uint32 kMegaByte = 0x100000; variable
90 off_t size = strtoll(fSizeTextControl->Text(), NULL, 10) * kMegaByte; in MessageReceived()
147 offset, size, kMegaByte); in _CreateCreateControls()
170 sizeString << fSizeSlider->Size() / kMegaByte; in _UpdateSizeTextControl()
/haiku/src/preferences/virtualmemory/
H A DSettingsWindow.cpp52 static const off_t kMegaByte = 1024 * 1024; variable
70 return string_for_size(Value() * kMegaByte, fText, sizeof(fText)); in UpdateText()
421 fSettings.SetSwapSize((off_t)fSizeSlider->Value() * kMegaByte); in _RecordChoices()
454 off_t minSize = B_PAGE_SIZE + kMegaByte; in _Update()
461 fSizeSlider->SetLimits(minSize / kMegaByte, safeSpace / kMegaByte); in _Update()
462 fSizeSlider->SetValue(fSettings.SwapSize() / kMegaByte); in _Update()
505 fSwapUsageBar->SetMaxValue(currentSwapSize / kMegaByte); in _UpdateSwapInfo()
506 fSwapUsageBar->Update(currentSwapUsed / kMegaByte, in _UpdateSwapInfo()
H A DSettings.cpp32 static const off_t kMegaByte = 1024 * 1024; variable
33 static const off_t kGigaByte = kMegaByte * 1024;