* Moved "install to Deskbar" alert into the application.
* If you install ProcessController to the Deskbar after startup, its window is not opened anymore. * When you install ProcessController, the Deskbar is only restarted if needed; this can probably be removed completely under Haiku. * Renamed some menu items. * Removed "Use Pulse's settings" menu item. * Fixed remaining issues from bug #633 as far as ProcessController was concerned. * Removed unused source files. * Big cleanup, even though there could be done much much more. * Compacted the source files a bit, merged PCView.cpp and PCView2.cpp to ProcessController.cpp to match the name of the class. * Renamed PCUtils.{cpp|h} to Utilities.{cpp|h} git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17647 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -19,22 +19,23 @@
|
||||
|
||||
|
||||
#include "KernelMemoryBarMenuItem.h"
|
||||
#include "MemoryBarMenu.h"
|
||||
|
||||
#include "Colors.h"
|
||||
#include "PCView.h"
|
||||
#include "MemoryBarMenu.h"
|
||||
#include "ProcessController.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
KernelMemoryBarMenuItem::KernelMemoryBarMenuItem(system_info* sinfo)
|
||||
KernelMemoryBarMenuItem::KernelMemoryBarMenuItem(system_info& systemInfo)
|
||||
: BMenuItem("System Resources & Caches...", NULL)
|
||||
{
|
||||
fTotalWriteMemory = -1;
|
||||
fLastSum = -1;
|
||||
fGrenze1 = -1;
|
||||
fGrenze2 = -1;
|
||||
fPhsysicalMemory = float(int(sinfo->max_pages * B_PAGE_SIZE / 1024));
|
||||
fCommitedMemory = float(int(sinfo->used_pages * B_PAGE_SIZE / 1024));
|
||||
fPhsysicalMemory = float(int(systemInfo.max_pages * B_PAGE_SIZE / 1024));
|
||||
fCommitedMemory = float(int(systemInfo.used_pages * B_PAGE_SIZE / 1024));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user