shithub: orca

Download patch

ref: 2c9c2ed710ed586b58d0f9958fdde32146733aec
parent: 6101cdddfc46943fefce89a02ebcb1be54457dcf
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Feb 25 06:16:41 EST 2020

plan9: fix nanosec() wrap-around logic

--- a/plan9.c
+++ b/plan9.c
@@ -665,8 +665,8 @@
 	}
 	cycles(&x);
 	if (x < xstart) { /* wrap around */
-		xstart = 0;
 		x += 0 - xstart;
+		xstart = 0;
 	}
 	x -= xstart;