From: <an...@us...> - 2007-04-26 13:09:15
|
Revision: 650 http://svn.sourceforge.net/magicmap/?rev=650&view=rev Author: anweiss Date: 2007-04-26 06:06:54 -0700 (Thu, 26 Apr 2007) Log Message: ----------- RPs with a signal strength of better than 30 return a strength of 0 instead of 100 now. Modified Paths: -------------- trunk/magicmapclient/src/net/sf/magicmap/client/measurement/MeasurementUtils.java Modified: trunk/magicmapclient/src/net/sf/magicmap/client/measurement/MeasurementUtils.java =================================================================== --- trunk/magicmapclient/src/net/sf/magicmap/client/measurement/MeasurementUtils.java 2007-04-26 13:05:22 UTC (rev 649) +++ trunk/magicmapclient/src/net/sf/magicmap/client/measurement/MeasurementUtils.java 2007-04-26 13:06:54 UTC (rev 650) @@ -25,7 +25,7 @@ public static double signalLevelToStrength(double signalLevel){ double result = Math.abs(signalLevel); result -= Constants.MAX_SIGNALLEVEL; - if (result < 0.0) return Constants.MIN_SIGNALLEVEL; // Wir stehen quasi auf dem AP + if (result <= 0.0) return 0.0; // Wir stehen quasi auf dem AP // drauf result = result * Constants.MIN_SIGNALLEVEL / (Constants.MIN_SIGNALLEVEL - Constants.MAX_SIGNALLEVEL); if (result > Constants.MIN_SIGNALLEVEL) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |