compares two time objects
| 44 | |
| 45 | // compares two time objects |
| 46 | static int cmp_timespec |
| 47 | ( |
| 48 | struct timespec a, |
| 49 | struct timespec b |
| 50 | ) { |
| 51 | if(a.tv_sec == b.tv_sec) { |
| 52 | return a.tv_nsec - b.tv_nsec; |
| 53 | } else { |
| 54 | return a.tv_sec - b.tv_sec; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // minimum heap sort function |
| 59 | static int CRON_JobCmp |
no outgoing calls
no test coverage detected