diff options
author | Samuel Martin <s.martin49@gmail.com> | 2017-09-13 21:22:20 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-09-13 21:41:04 +0200 |
commit | 1b14daf1549b6c9d74b2e9ef581ae18d503ef8f4 (patch) | |
tree | 90eaa68130eb954624e1763526c56d36d20dc546 | |
parent | otverio2015: fix _MEAL_CODES map. (diff) | |
download | glucometerutils-1b14daf1549b6c9d74b2e9ef581ae18d503ef8f4.tar glucometerutils-1b14daf1549b6c9d74b2e9ef581ae18d503ef8f4.tar.gz glucometerutils-1b14daf1549b6c9d74b2e9ef581ae18d503ef8f4.tar.bz2 glucometerutils-1b14daf1549b6c9d74b2e9ef581ae18d503ef8f4.tar.lz glucometerutils-1b14daf1549b6c9d74b2e9ef581ae18d503ef8f4.tar.xz glucometerutils-1b14daf1549b6c9d74b2e9ef581ae18d503ef8f4.tar.zst glucometerutils-1b14daf1549b6c9d74b2e9ef581ae18d503ef8f4.zip |
-rw-r--r-- | glucometerutils/drivers/fslibre.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/glucometerutils/drivers/fslibre.py b/glucometerutils/drivers/fslibre.py index 4dda376..3f21363 100644 --- a/glucometerutils/drivers/fslibre.py +++ b/glucometerutils/drivers/fslibre.py @@ -143,8 +143,8 @@ def _parse_arresult(record): if parsed_record['long-acting-flag']: if parsed_record['double-long-acting-insulin']: comment_parts.append( - 'Long-acting insulin (%d)' % - (parsed_record['double-long-acting-insulin']/2)) + 'Long-acting insulin (%.1f)' % + (parsed_record['double-long-acting-insulin']/2.)) else: comment_parts.append('Long-acting insulin') @@ -153,8 +153,8 @@ def _parse_arresult(record): # (even if rapid-acting-flag is set) if parsed_record.get('double-rapid-acting-insulin', 0): comment_parts.append( - 'Rapid-acting insulin (%d)' % - (parsed_record['double-rapid-acting-insulin']/2)) + 'Rapid-acting insulin (%.1f)' % + (parsed_record['double-rapid-acting-insulin']/2.)) else: comment_parts.append('Rapid-acting insulin') |