@@ -1,2 +1,2 | |||||
1 | 3081d1f9bb20b2b64a192585337a292a9804e0c5 LFR_basic-parameters |
|
1 | 29f7f58cbebc19532376c16541841ac4cb5f234c LFR_basic-parameters | |
2 | f5b83fb540b1cfd5d87c68621fb53f238eb623ae header/lfr_common_headers |
|
2 | f5b83fb540b1cfd5d87c68621fb53f238eb623ae header/lfr_common_headers |
@@ -57,7 +57,7 unsigned char lfr_rtems_cpu_usage_report | |||||
57 | _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); |
|
57 | _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); | |
58 | ran = the_thread->cpu_time_used; |
|
58 | ran = the_thread->cpu_time_used; | |
59 | _Timestamp_Divide( &ran, &total, &ival, &fval); |
|
59 | _Timestamp_Divide( &ran, &total, &ival, &fval); | |
60 | cpu_load = (unsigned char)(CONST_255 - ((ival*CONST_10+fval/CONST_100)*CONST_256/CONST_1000)); |
|
60 | cpu_load = (unsigned char) (CONST_255 - ((((ival*CONST_10) + (fval/CONST_100))*CONST_256)/CONST_1000)); | |
61 | } |
|
61 | } | |
62 | } |
|
62 | } | |
63 | } |
|
63 | } |
General Comments 0
You need to be logged in to leave comments.
Login now