MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / cmp_timespec

Function cmp_timespec

src/cron/cron.c:46–56  ·  view source on GitHub ↗

compares two time objects

Source from the content-addressed store, hash-verified

44
45// compares two time objects
46static 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
59static int CRON_JobCmp

Callers 2

CRON_JobCmpFunction · 0.85
CRON_TaskDueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected