From 6622ca28ee82f9b4b5a3e5321cea6d6e36e86f0b Mon Sep 17 00:00:00 2001 From: Nayeon Keum Date: Fri, 29 Sep 2023 21:30:19 +0900 Subject: [PATCH] [feat/#97] Fix: times.txt path --- .../images/professor-ubuntu/server/getValueAndTime_c.sh | 6 ++++-- .../images/professor-ubuntu/server/getValueAndTime_cpp.sh | 6 ++++-- .../professor-ubuntu/server/getValueAndTime_python.sh | 5 +++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/resources/images/professor-ubuntu/server/getValueAndTime_c.sh b/resources/images/professor-ubuntu/server/getValueAndTime_c.sh index edb26cb..8106f1b 100644 --- a/resources/images/professor-ubuntu/server/getValueAndTime_c.sh +++ b/resources/images/professor-ubuntu/server/getValueAndTime_c.sh @@ -4,9 +4,11 @@ start=`date +%s.%N` /usr/bin/gcc $1 -o $2/test.out $2/test.out > $2/values.txt +/usr/bin/rm -rf $2/test.out finish=`date +%s.%N` -diff=$( echo "$finish - $start" | bc -l ) -/usr/bin/echo $diff > $2/time.txt \ No newline at end of file +# diff=$( echo "$finish - $start" | bc -l ) +# /usr/bin/echo $diff > $2/time.txt +/usr/bin/echo "" > $2/time.txt \ No newline at end of file diff --git a/resources/images/professor-ubuntu/server/getValueAndTime_cpp.sh b/resources/images/professor-ubuntu/server/getValueAndTime_cpp.sh index e1d1976..745dba5 100644 --- a/resources/images/professor-ubuntu/server/getValueAndTime_cpp.sh +++ b/resources/images/professor-ubuntu/server/getValueAndTime_cpp.sh @@ -4,9 +4,11 @@ start=`date +%s.%N` /usr/bin/g++ -o $2/test $1 $2/test > $2/values.txt +/usr/bin/rm -rf $2/test finish=`date +%s.%N` -diff=$( echo "$finish - $start" | bc -l ) -/usr/bin/echo $diff > $2/time.txt \ No newline at end of file +# diff=$( echo "$finish - $start" | bc -l ) +# /usr/bin/echo $diff > $2/time.txt +/usr/bin/echo "" > $2/time.txt \ No newline at end of file diff --git a/resources/images/professor-ubuntu/server/getValueAndTime_python.sh b/resources/images/professor-ubuntu/server/getValueAndTime_python.sh index 88fc386..8cade3a 100644 --- a/resources/images/professor-ubuntu/server/getValueAndTime_python.sh +++ b/resources/images/professor-ubuntu/server/getValueAndTime_python.sh @@ -7,5 +7,6 @@ start=`date +%s.%N` finish=`date +%s.%N` -diff=$( echo "$finish - $start" | bc -l ) -/usr/bin/echo $diff > $2/time.txt \ No newline at end of file +# diff=$( echo "$finish - $start" | bc -l ) +# /usr/bin/echo $diff > $2/time.txt +/usr/bin/echo "" > $2/time.txt \ No newline at end of file