summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulercbsgetexecutiontime.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/schedulercbsgetexecutiontime.c')
-rw-r--r--cpukit/score/src/schedulercbsgetexecutiontime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/schedulercbsgetexecutiontime.c b/cpukit/score/src/schedulercbsgetexecutiontime.c
index b8d92ada30..2461d76816 100644
--- a/cpukit/score/src/schedulercbsgetexecutiontime.c
+++ b/cpukit/score/src/schedulercbsgetexecutiontime.c
@@ -31,7 +31,7 @@ int _Scheduler_CBS_Get_execution_time (
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
- if ( !_Scheduler_CBS_Server_list[server_id]->task_id ) {
+ if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) {
*exec_time = 0;
return SCHEDULER_CBS_OK;
}