Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeldeLace committed Nov 5, 2024
1 parent 06c6230 commit d75e759
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 95 deletions.
5 changes: 4 additions & 1 deletion app/imports/client/custom/vq/templates/VQ_DSS_schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,8 @@ function getDifferenceNew(classInfo1, classInfo2) {

const diff1 = d/(s+0.1);
const diff2 = dw/(s+0.1);
if ( params.newDifs && classInfo1.id != classInfo2.id )
rezFull.diffMax = Math.max(rezFull.diffMax , s);

return {s1_dal:Math.round(diff1*10)/10, s2_dal:Math.round(diff2*10)/10, s1_s:Math.round(s*10)/10, s1_d:Math.round(d*10)/10, s2_dw:Math.round(dw*10)/10};
}
Expand Down Expand Up @@ -1154,7 +1156,8 @@ function getDifferenceOld(classInfo1, classInfo2) {
if ( diffB == 0 && Bd + Bo > 0 ) {
diffB = 0.5;
}
rezFull.diffMax = Math.max(rezFull.diffMax , diffA);
if ( !params.newDifs )
rezFull.diffMax = Math.max(rezFull.diffMax , diffA);
return [diffA, diffB]; //[Math.round(Ad + Ao), Math.round(Bd + Bo)];
}

Expand Down
Loading

0 comments on commit d75e759

Please sign in to comment.