From: Christopher Allan Webber Date: Mon, 23 Nov 2015 01:26:46 +0000 (-0600) Subject: Fixed a seeerrrrrrrrrious bug in the timing math X-Git-Tag: v0.1.0~98 X-Git-Url: https://jxself.org/git/?p=8sync.git;a=commitdiff_plain;h=9b79348068515e044d264b77c8f7e3b7e0253283 Fixed a seeerrrrrrrrrious bug in the timing math --- diff --git a/eightsync/agenda.scm b/eightsync/agenda.scm index 8905c1b..2b46324 100644 --- a/eightsync/agenda.scm +++ b/eightsync/agenda.scm @@ -248,13 +248,13 @@ Will produce (0 . 0) instead of a negative number, if needed." "Subtract TIME2 from TIME1" (time-carry-correct (cons (- (car time1) (car time2)) - (- (cdr time2) (cdr time2))))) + (- (cdr time1) (cdr time2))))) (define (time-plus time1 time2) "Add TIME1 and TIME2" (time-carry-correct (cons (+ (car time1) (car time2)) - (+ (cdr time2) (cdr time2))))) + (+ (cdr time1) (cdr time2))))) (define-record-type