Rafael.Vanoni wrote: > Li, Aubrey wrote: >> Rafael.Vanoni wrote: >> >>> dtrace_time will be larger than the interval when the system was in >>> a state for a period longer than the interval, and then >>> transitioned to another. >> >> This is already considered and implemented by per-cpu time_accounted. >> >> >>> So I don't think moving the gethrtime() call will solve the >>> problem. Maybe I'm missing something here.. >> >> I do. But after figure out what makes the duration negative, the >> previous fix is acceptable to me. > > Changing the script and checking for duration < 0 ? > > Rafael
Yeah, it works properly. -Aubrey
