Merge branch 'feature/device-service' of https://github.com/jazzm0/microservices-demo into feature/device-service

This commit is contained in:
Steinwagner 2019-12-11 11:31:25 +01:00
commit 3d2faac24a
2 changed files with 3 additions and 1 deletions

View file

@ -65,6 +65,8 @@ public class Device {
healthScore += delta;
if (healthScore > 150)
healthScore /= 10;
} else {
healthScore = 0;
}
messages.add(new DeviceEvent(id, owner, color, born, healthScore, Instant.now()));
}

View file

@ -54,7 +54,7 @@ public class Owner {
if (devices != null) {
Device first = devices.iterator().next();
Care care = new Care();
care.setFeed(-1000);
care.setFeed(-100000);
tamagotchiService.takeCare(first.getId(), care);
}
}