workaround for https://github.com/nightscout/cgm-remote-monitor/issues/4929
This commit is contained in:
parent
55c1bd1a01
commit
21ee334218
1 changed files with 4 additions and 4 deletions
|
@ -164,13 +164,13 @@ public class Profile {
|
||||||
try {
|
try {
|
||||||
final JSONObject o = array.getJSONObject(index);
|
final JSONObject o = array.getJSONObject(index);
|
||||||
long tas = 0;
|
long tas = 0;
|
||||||
try {
|
// try {
|
||||||
tas = getShitfTimeSecs((int) o.getLong("timeAsSeconds"));
|
// tas = getShitfTimeSecs((int) o.getLong("timeAsSeconds"));
|
||||||
} catch (JSONException e) {
|
// } catch (JSONException e) {
|
||||||
String time = o.getString("time");
|
String time = o.getString("time");
|
||||||
tas = getShitfTimeSecs(DateUtil.toSeconds(time));
|
tas = getShitfTimeSecs(DateUtil.toSeconds(time));
|
||||||
//log.debug(">>>>>>>>>>>> Used recalculated timeAsSecons: " + time + " " + tas);
|
//log.debug(">>>>>>>>>>>> Used recalculated timeAsSecons: " + time + " " + tas);
|
||||||
}
|
// }
|
||||||
double value = o.getDouble("value") * multiplier;
|
double value = o.getDouble("value") * multiplier;
|
||||||
sparse.put(tas, value);
|
sparse.put(tas, value);
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
|
|
Loading…
Reference in a new issue