Skip to content

Commit

Permalink
activitymonitor: remove B_MAX_CPU_COUNT reference
Browse files Browse the repository at this point in the history
It has no use, since we don't know its value and the list of colors
might be longer (for example, for ARM currently B_MAX_CPU_COUNT is
only 1). The modula operator later on makes sure we keep within the
bounds of the kColors array anyway.
  • Loading branch information
Ithamar committed Nov 22, 2012
1 parent ba71ae7 commit b190a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/activitymonitor/DataSource.cpp
Expand Up @@ -949,7 +949,7 @@ CPUUsageDataSource::_SetCPU(int32 cpu)

fLabel << " " << B_TRANSLATE("usage");

const rgb_color kColors[B_MAX_CPU_COUNT] = {
const rgb_color kColors[] = {
// TODO: find some better defaults...
{200, 0, 200},
{0, 200, 200},
Expand Down

0 comments on commit b190a54

Please sign in to comment.