Milos Kozak 2019-08-26 18:42:17 +02:00
parent 55c1bd1a01
commit 21ee334218

View file

@ -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) {