@ -69,8 +69,15 @@
nonSegmented = alwaysSmooth || (target >= 60);
if (!nonSegmented) {
ons = Math.round(ons);
offs = Math.round(offs);
ons = Math.floor(ons);
offs = Math.ceil(offs);
if (ons + offs > target) {
if (offs > 0) {
offs -= 1;
} else {
ons -= 1;
}
offClass = "none";