Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program appear twice in preview #25

Closed
sbrown4 opened this issue May 26, 2014 · 1 comment
Closed

Program appear twice in preview #25

sbrown4 opened this issue May 26, 2014 · 1 comment

Comments

@sbrown4
Copy link

sbrown4 commented May 26, 2014

In master branch.

Same issue with the program running twice bug. The program only runs once, but appears twice in the preview.

--- a/static/scripts/java/svc1.8.3/plotprog.js
+++ b/static/scripts/java/svc1.8.3/plotprog.js
@@ -32,7 +32,7 @@ function check_match(prog,simminutes,simdate,simday) {
       else if ((dt%2)!=1) return 0;
     }
   }
-  if(simminutes<prog[3] || simminutes>prog[4])  return 0; // start and end time checking
+  if(simminutes<prog[3] || simminutes>=prog[4])  return 0; // start and end time checking
   if(prog[5]==0)  return 0;
   if(((simminutes-prog[3])/prog[5]>>0)*prog[5] == (simminutes-prog[3])) { // interval checking
     return 1;
@Dan-in-CA
Copy link
Owner

Thanks, updated the file in master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants