apps/BSnow: Do not use cpu_clock_speed

This commit is contained in:
Pawel Dziepak 2013-12-13 02:38:35 +01:00
parent 25feff2c29
commit e397276460

View File

@ -87,7 +87,7 @@ SnowView::SnowView(BMessage *archive)
fShowClickMe = false;
SetFlags(Flags() & ~B_PULSE_NEEDED); /* it's only used when in the app */
get_system_info(&si);
fNumFlakes = ((int32)(si.cpu_clock_speed/1000000)) * si.cpu_count / 3; //;
fNumFlakes = 1000 * si.cpu_count / 3;
printf("BSnow: using %ld flakes\n", fNumFlakes);
for (int i = 0; i < WORKSPACES_COUNT; i++) {
fFlakes[i] = new flake[fNumFlakes];