Skip to content

Commit

Permalink
Wip/libre reporting fixes (#4502)
Browse files Browse the repository at this point in the history
* release 0.11.1 (#4279)

* Update dev version to 0.11.1

* remove + from version, make way for 0.11.1, upgrade webpack (#4277)

* Reporting compatibiilty fixes for Libre/Miaomiao

  * Allow sgv readings that are spaced 1 minute apart (report.js)
  * Calculate GVI using the actual time deltas of each individual sgv record (don't assume 5 minute gaps)
  * Calculate rapid rise deltas using time delta of the sgv record (don't assume 5 minute gaps)
  * Fix bug in GVIDelta calculation

* Bug fixes after testing

  * Each for loop was dropping the last 2 values of the array
      - firstly, due to using < instead of <= for the length comparator
      - secondly, the last value in the array is never checked, so it was not added

* Code clean ups

  * Commented out all unused references to RMS calculation
  * Removed unused totals variable
  * Formatted using project js-beautify rules

* Update npm-shrinkwrap.json
  • Loading branch information
rob-andy authored and sulkaharo committed Apr 28, 2019
1 parent bbcd3c5 commit 9cf02e8
Show file tree
Hide file tree
Showing 2 changed files with 400 additions and 417 deletions.
Loading

0 comments on commit 9cf02e8

Please sign in to comment.