Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
model clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
zlern2k committed Jun 30, 2016
1 parent a61efe9 commit 3615866
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ private static int categorizeByYear2016Method(Context c) {
return DeviceInfo.getNumberOfCPUCores() <= 1 ? CLASS_2009 : CLASS_2010;
}
if (totalRam <= 1024 * MB) {
return DeviceInfo.getCPUMaxFreqKHz() < 1280 * MHZ_IN_KHZ ? CLASS_2011 : CLASS_2012;
return DeviceInfo.getCPUMaxFreqKHz() < 1300 * MHZ_IN_KHZ ? CLASS_2011 : CLASS_2012;
}
if (totalRam < 1536 * MB) {
return DeviceInfo.getCPUMaxFreqKHz() < 1780 * MHZ_IN_KHZ ? CLASS_2012 : CLASS_2013;
if (totalRam <= 1536 * MB) {
return DeviceInfo.getCPUMaxFreqKHz() < 1800 * MHZ_IN_KHZ ? CLASS_2012 : CLASS_2013;
}
if (totalRam <= 2048 * MB) {
return CLASS_2013;
}
return totalRam < 3 * 1024 * MB ? CLASS_2014 : CLASS_2015;
return totalRam <= 3 * 1024 * MB ? CLASS_2014 : CLASS_2015;
}

/**
Expand Down

0 comments on commit 3615866

Please sign in to comment.