Commits

Anonymous committed f168a88 Draft

dont use the priority queue root, lmao. use the new nodes root

Comments (0)

Files changed (1)

   printf("entering the wheel of pain\n");
 
   /* assumption: time_t is expressed in seconds */
-  while (now+1 >= z->expiration) {
+  while (z->expiration <= now+1) {
 
     printf("now+1: %d\n", now+1);
     printf("z->exp: %d\n", z->expiration);
 
       printf("about to enter the throes of victory, old boy\n");
 
-      z->valid_root = PQ_NODE(new_root)->root;
-      z->expiration = PQ_NODE(new_root)->expiry;
+      z->valid_root = PQ_NODE(n)->root;
+      z->expiration = PQ_NODE(n)->expiry;
 
       printf("blast and devilment\n");