Explorar o código

HUE-492. Change amplitude calcuation in HueChart.Box to use toFloat rather than toInt.

Marcus McLaughlin %!s(int64=14) %!d(string=hai) anos
pai
achega
4e5ecfc621
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/static/js/Source/Hue/HueChart.Box.js

+ 1 - 1
desktop/core/static/js/Source/Hue/HueChart.Box.js

@@ -580,7 +580,7 @@ HueChart.Box = new Class({
 				//And amplitude exists in metadata
 				if ($defined(metadata.amplitude)){
 					//Multiply the charting value by amplitude and return
-					return String(seriesObject.value.toInt() * metadata['amplitude']);
+					return String(seriesObject.value.toFloat() * metadata['amplitude']);
 				}
 			} else {
 				//Format bytes properly