apps: ProcessController: Initialize per CPU fields properly
This commit is contained in:
@@ -230,6 +230,10 @@ ProcessController::~ProcessController()
|
|||||||
void
|
void
|
||||||
ProcessController::Init()
|
ProcessController::Init()
|
||||||
{
|
{
|
||||||
|
memset(fLastBarHeight, 0, sizeof(float) * kCPUCount);
|
||||||
|
memset(fCPUTimes, 0, sizeof(double) * kCPUCount);
|
||||||
|
memset(fPrevActive, 0, sizeof(bigtime_t) * kCPUCount);
|
||||||
|
|
||||||
gPCView = this;
|
gPCView = this;
|
||||||
fMessageRunner = NULL;
|
fMessageRunner = NULL;
|
||||||
memset(fLastBarHeight, 0, sizeof(fLastBarHeight));
|
memset(fLastBarHeight, 0, sizeof(fLastBarHeight));
|
||||||
|
|||||||
Reference in New Issue
Block a user