migrate CPP->LP working
This commit is contained in:
parent
6f97e52a07
commit
944e334231
1 changed files with 2 additions and 1 deletions
|
@ -258,6 +258,7 @@ public class CircadianPercentageProfilePlugin implements PluginBase, ProfileInte
|
|||
try {
|
||||
JSONArray jsonArray = new JSONArray();
|
||||
double last = -1d;
|
||||
|
||||
for (int i = 0; i < 24; i++) {
|
||||
double value = SP.getDouble(SETTINGS_PREFIX + type + i, defaultValue);
|
||||
String time;
|
||||
|
@ -267,8 +268,8 @@ public class CircadianPercentageProfilePlugin implements PluginBase, ProfileInte
|
|||
jsonArray.put(new JSONObject().put("time", time).put("timeAsSeconds", i * 60 * 60).put("value", value));
|
||||
}
|
||||
last = value;
|
||||
return jsonArray.toString();
|
||||
}
|
||||
return jsonArray.toString();
|
||||
} catch (JSONException e) {
|
||||
log.error("Unhandled exception", e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue