[bootlin/training-materials updates] master: Real-time lab: minor improvement to rttest.c code comments (25a8688c)

Michael Opdenacker michael.opdenacker at bootlin.com
Thu May 20 18:26:27 CEST 2021


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/25a8688c7d1261fe225f909dd9ff4060436daf4f

>---------------------------------------------------------------

commit 25a8688c7d1261fe225f909dd9ff4060436daf4f
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Thu May 20 18:26:27 2021 +0200

    Real-time lab: minor improvement to rttest.c code comments
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

25a8688c7d1261fe225f909dd9ff4060436daf4f
 lab-data/embedded-linux/realtime/data/rttest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lab-data/embedded-linux/realtime/data/rttest.c b/lab-data/embedded-linux/realtime/data/rttest.c
index 405d169b..fb0740f9 100644
--- a/lab-data/embedded-linux/realtime/data/rttest.c
+++ b/lab-data/embedded-linux/realtime/data/rttest.c
@@ -63,13 +63,13 @@ int main (void)
 		/* Get the date before sleeping */
 		clock_gettime(CLOCK_MONOTONIC, &time1);
 
-		/* Compute the wake-up date */
+		/* Compute the expected wake-up date */
 		timespec_add_ns(&time1, 100000);
 
 		/* Sleep */
 		clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &time1, NULL);
 
-		/* Get the wake-up date */
+		/* Get the actual wake-up date */
 		clock_gettime(CLOCK_MONOTONIC, &time2);
 
 		/* skip the first second for warmup */




More information about the training-materials-updates mailing list