]> code.citadel.org Git - citadel.git/blobdiff - webcit/availability.c
Calendar day view: complete in two passes (once
[citadel.git] / webcit / availability.c
index 8676ab2cd5804fd79288c1fc19268aeb11b22b03..ce15c78356f2384a2baaa71253b547d35fcf5861 100644 (file)
@@ -145,7 +145,10 @@ int ical_ctdl_is_overlap(
                }
        }
 
-       lprintf (2,"Comparing t1start %d:%d t1end %d:%d t2start %d:%d t2end %d:%d \n", t1start.hour, t1start.minute, t1end.hour, t1end.minute, t2start.hour, t2start.minute, t2end.hour, t2end.minute);// TODO: remove me.
+       /* lprintf (9, "Comparing t1start %d:%d t1end %d:%d t2start %d:%d t2end %d:%d \n",
+               t1start.hour, t1start.minute, t1end.hour, t1end.minute,
+               t2start.hour, t2start.minute, t2end.hour, t2end.minute);
+       */
 
        /** Now check for overlaps using date *and* time. */
 
@@ -155,10 +158,11 @@ int ical_ctdl_is_overlap(
 
        /** If event 1 ends before event 2 starts, we're in the clear. */
        if (webcit_icaltime_compare(t1end, t2start) <= 0) return(0);
-       lprintf(2,"first pased \n");
+       // lprintf(9, "first passed\n");
+
        /** If event 2 ends before event 1 starts, we're also ok. */
        if (webcit_icaltime_compare(t2end, t1start) <= 0) return(0);
-       lprintf(2,"second pased \n");
+       // lprintf(9, "second passed\n");
 
        /** Otherwise, they overlap. */
        return(1);