DORMANTno replies

[PATCH] scripts/oe-time-dd-test.sh: run "uptime" on each iteration

From: Sakib Sajal <hidden>
Date: 2021-07-20 19:09:15
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Sakib Sajal <redacted>
---
 scripts/oe-time-dd-test.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/oe-time-dd-test.sh b/scripts/oe-time-dd-test.sh
index df36c0b297..386de83dce 100755
--- a/scripts/oe-time-dd-test.sh
+++ b/scripts/oe-time-dd-test.sh
@@ -25,7 +25,6 @@ usage() {
 }
 
 run_cmds() {
-    uptime
     echo "start: top output"
 	top -c -b -n1 -w 512
 	echo "end: top output"
@@ -85,6 +84,7 @@ done
 
 
 if [ "$LOG_ONLY" = "true" ] ; then
+    uptime
     run_cmds
     exit
 fi
@@ -94,6 +94,7 @@ if [ -z ${TIMEOUT+x} ] || [ -z ${COUNT+x} ] ; then
     exit 1
 fi
 
+uptime
 echo "Timeout used: ${TIMEOUT}"
 timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=${COUNT} conv=fsync
 if [ $? -ne 0 ]; then
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help