apps: ProcessController: Initialize per CPU fields properly

This commit is contained in:
Pawel Dziepak 2013-12-29 22:24:53 +01:00
parent e46f284adc
commit c69bd82c31
1 changed files with 4 additions and 0 deletions

View File

@ -230,6 +230,10 @@ ProcessController::~ProcessController()
void
ProcessController::Init()
{
memset(fLastBarHeight, 0, sizeof(float) * kCPUCount);
memset(fCPUTimes, 0, sizeof(double) * kCPUCount);
memset(fPrevActive, 0, sizeof(bigtime_t) * kCPUCount);
gPCView = this;
fMessageRunner = NULL;
memset(fLastBarHeight, 0, sizeof(fLastBarHeight));