Skip to content

Commit

Permalink
Merge 855e951 into 4d88869
Browse files Browse the repository at this point in the history
  • Loading branch information
sulkaharo committed Jun 25, 2015
2 parents 4d88869 + 855e951 commit cce1829
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/plugins/basalprofile.js
Expand Up @@ -36,9 +36,9 @@ function init() {

var basalValue = sbx.data.profile.getBasal(sbx.time);

var info = [{label: 'Current basal:', value: basalValue + ' IU'}
, {label: 'Current sensitivity:', value: sbx.data.profile.getSensitivity(sbx.time) + ' ' + sbx.units + '/ IU'}
, {label: 'Current carb ratio:', value: '1 IU /' + sbx.data.profile.getCarbRatio(sbx.time) + 'g'}
var info = [{label: 'Current basal:', value: basalValue + ' U'}
, {label: 'Current sensitivity:', value: sbx.data.profile.getSensitivity(sbx.time) + ' ' + sbx.units + '/ U'}
, {label: 'Current carb ratio:', value: '1 U /' + sbx.data.profile.getCarbRatio(sbx.time) + 'g'}
];

sbx.pluginBase.updatePillText(basal, {
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/delta.js
Expand Up @@ -36,7 +36,7 @@ function init() {
if (currentSGV < 40 || prevSVG < 40) { return result; }
if (currentSGV > 400 || prevSVG > 400) { return result; }

result.value = sbx.scaleBg(currentSGV) - sbx.scaleBg(prevSVG);
result.value = sbx.roundBGToDisplayFormat(sbx.scaleBg(currentSGV) - sbx.scaleBg(prevSVG));
result.display = (result.value >= 0 ? '+' : '') + result.value;

return result;
Expand Down

0 comments on commit cce1829

Please sign in to comment.