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 {
|
||||
final JSONObject o = array.getJSONObject(index);
|
||||
long tas = 0;
|
||||
try {
|
||||
tas = getShitfTimeSecs((int) o.getLong("timeAsSeconds"));
|
||||
} catch (JSONException e) {
|
||||
// try {
|
||||
// tas = getShitfTimeSecs((int) o.getLong("timeAsSeconds"));
|
||||
// } catch (JSONException e) {
|
||||
String time = o.getString("time");
|
||||
tas = getShitfTimeSecs(DateUtil.toSeconds(time));
|
||||
//log.debug(">>>>>>>>>>>> Used recalculated timeAsSecons: " + time + " " + tas);
|
||||
}
|
||||
// }
|
||||
double value = o.getDouble("value") * multiplier;
|
||||
sparse.put(tas, value);
|
||||
} catch (JSONException e) {
|
||||
|
|
Loading…
Reference in a new issue