diff options
-rw-r--r-- | include/litmus/litmus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/litmus/litmus.h b/include/litmus/litmus.h index 30f41869b455..246483783fc0 100644 --- a/include/litmus/litmus.h +++ b/include/litmus/litmus.h | |||
@@ -62,7 +62,7 @@ inline static int budget_exhausted(struct task_struct* t) | |||
62 | inline static lt_t budget_remaining(struct task_struct* t) | 62 | inline static lt_t budget_remaining(struct task_struct* t) |
63 | { | 63 | { |
64 | if (!budget_exhausted(t)) | 64 | if (!budget_exhausted(t)) |
65 | return get_exec_time(t) - get_exec_cost(t); | 65 | return get_exec_cost(t) - get_exec_time(t); |
66 | else | 66 | else |
67 | /* avoid overflow */ | 67 | /* avoid overflow */ |
68 | return 0; | 68 | return 0; |