Searched refs:kMegaByte (Results 1 - 4 of 4) sorted by relevance

/haiku-fatelf/src/apps/drivesetup/
H A DSupport.h25 static const uint32 kMegaByte = 0x100000; variable
H A DCreateParametersPanel.cpp50 offset /= kMegaByte;
51 size /= kMegaByte;
68 size = (off_t)fSizeSlider->Size() * kMegaByte;
69 offset = (off_t)fSizeSlider->Offset() * kMegaByte;
/haiku-fatelf/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));
410 fSettings.SetSwapSize((off_t)fSizeSlider->Value() * kMegaByte);
443 off_t minSize = B_PAGE_SIZE + kMegaByte;
450 fSizeSlider->SetLimits(minSize / kMegaByte, safeSpace / kMegaByte);
451 fSizeSlider->SetValue(fSettings.SwapSize() / kMegaByte);
493 fSwapUsageBar->SetMaxValue(currentSwapSize / kMegaByte);
494 fSwapUsageBar->Update(currentSwapUsed / kMegaByte,
H A DSettings.cpp31 static const off_t kMegaByte = 1024 * 1024; variable
32 static const off_t kGigaByte = kMegaByte * 1024;

Completed in 47 milliseconds