Skip to content

Commit

Permalink
HUE-492. Change amplitude calcuation in HueChart.Box to use toFloat r…
Browse files Browse the repository at this point in the history
…ather than toInt.
  • Loading branch information
Marcus McLaughlin committed Mar 7, 2011
1 parent 7c11738 commit 4e5ecfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/core/static/js/Source/Hue/HueChart.Box.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e5ecfc

Please sign in to comment.