Fixes.
This commit is contained in:
parent
8a7776fd74
commit
a4e9cb4976
2 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ public class NewInsulinDialog extends DialogFragment implements OnClickListener,
|
|||
|
||||
private String toSignedString(double value) {
|
||||
String formatted = DecimalFormatter.toPumpSupportedBolus(value);
|
||||
return value < 0 ? "-" + formatted : formatted;
|
||||
return value > 0 ? "+" + formatted : formatted;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -179,7 +179,7 @@ public class NSUpload {
|
|||
DbLogger.dbAdd(intent, data.toString());
|
||||
}
|
||||
|
||||
private static String getNextAvailableSecond(long time) {
|
||||
private static synchronized String getNextAvailableSecond(long time) {
|
||||
long second = time - time % 1000;
|
||||
if (second == lastUsedSecond) second += 1000;
|
||||
lastUsedSecond = second;
|
||||
|
|
Loading…
Reference in a new issue