diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2022-08-22 20:59:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-08-22 20:59:08 +0000 |
commit | 0ec57f0b34058a397aecee00c198e7559ecb7b0c (patch) | |
tree | dfbbca6511883ab5927e626fd910c77c7fe460bb /snmptrap/scheduler.sh | |
parent | fd09404338108987774ffae7aa90b67370dd290d (diff) | |
parent | 4b6b34642374103b8ccf938eb9e970232bfb63ae (diff) |
Merge "CodeCoverage improvement (60% to 90%)"
Diffstat (limited to 'snmptrap/scheduler.sh')
-rwxr-xr-x | snmptrap/scheduler.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/snmptrap/scheduler.sh b/snmptrap/scheduler.sh index bb2d083..bf989b9 100755 --- a/snmptrap/scheduler.sh +++ b/snmptrap/scheduler.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # ============LICENSE_START======================================================= -# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2022 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -56,10 +56,10 @@ _verbosity=$2 _log_message=$3 echo "`date` `date +%s` ${_fx} ${_error_code} ${_log_message}" >> ${log_fd} - + # log_lines=`wc -l ${log_fd} | awk {'print $1'} | bc` # log_lines=$((${log_lines}+1)) - + # if [ ${log_lines} -ge ${max_log_lines} ] # then # if [ -f ${log_fd} ] @@ -178,9 +178,9 @@ do run_daily_jobs # reset last_day last_day=${current_day} - fi - fi - fi + fi + fi + fi fi sleep ${sleep_time} done |