Added VirtualMemory preferences to image.

This commit is contained in:
Alex Smith 2012-08-18 12:12:36 +01:00
parent 3c230971db
commit 6314232f45
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ SYSTEM_APPS = AboutSystem DriveSetup Installer Terminal ;
SYSTEM_PREFERENCES = Appearance Backgrounds <preference>Deskbar FileTypes
Keyboard Keymap Locale Mouse Network Notifications Screen Time Touchpad
<preference>Tracker
<preference>Tracker VirtualMemory
;
SYSTEM_DEMOS = ;

View File

@ -203,11 +203,11 @@ Settings::_WriteSwapSettings()
SwapVolume().GetName(volumeName);
else if (fBadVolName)
strcpy(volumeName, fBadVolName);
snprintf(buffer, sizeof(buffer), "vm %s\nswap_size %Ld\nswap_volume %s\n",
SwapEnabled() ? "on" : "off", SwapSize(),
snprintf(buffer, sizeof(buffer), "vm %s\nswap_size %" B_PRIdOFF "\n"
"swap_volume %s\n", SwapEnabled() ? "on" : "off", SwapSize(),
volumeName[0] ? volumeName : NULL);
#else
snprintf(buffer, sizeof(buffer), "vm %s\nswap_size %Ld\n",
snprintf(buffer, sizeof(buffer), "vm %s\nswap_size %" B_PRIdOFF "\n",
fSwapEnabled ? "on" : "off", fSwapSize);
#endif