Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AossCeilo
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
AossCeilo
Commits
5e250e03
Verified
Commit
5e250e03
authored
1 month ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Fix midnight check in checkmk script
parent
eddb97d4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+3
-3
3 additions, 3 deletions
.pre-commit-config.yaml
checkmk/check_aoss_ceilo_archive.sh
+2
-2
2 additions, 2 deletions
checkmk/check_aoss_ceilo_archive.sh
with
5 additions
and
5 deletions
.pre-commit-config.yaml
+
3
−
3
View file @
5e250e03
...
@@ -7,7 +7,7 @@ repos:
...
@@ -7,7 +7,7 @@ repos:
-
id
:
pre-commit-update
-
id
:
pre-commit-update
args
:
[
--dry-run
]
args
:
[
--dry-run
]
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
rev
:
'
v0.12.
2
'
rev
:
'
v0.12.
4
'
hooks
:
hooks
:
-
id
:
ruff
-
id
:
ruff
args
:
[
"
--fix"
]
args
:
[
"
--fix"
]
...
@@ -20,12 +20,12 @@ repos:
...
@@ -20,12 +20,12 @@ repos:
-
id
:
check-yaml
-
id
:
check-yaml
args
:
[
--unsafe
]
args
:
[
--unsafe
]
-
repo
:
https://github.com/PyCQA/bandit
-
repo
:
https://github.com/PyCQA/bandit
rev
:
'
1.8.
5
'
# Update me!
rev
:
'
1.8.
6
'
# Update me!
hooks
:
hooks
:
-
id
:
bandit
-
id
:
bandit
args
:
[
--ini
,
.bandit
]
args
:
[
--ini
,
.bandit
]
-
repo
:
https://github.com/pre-commit/mirrors-mypy
-
repo
:
https://github.com/pre-commit/mirrors-mypy
rev
:
'
v1.1
6.1
'
# Use the sha / tag you want to point at
rev
:
'
v1.1
7.0
'
# Use the sha / tag you want to point at
hooks
:
hooks
:
-
id
:
mypy
-
id
:
mypy
additional_dependencies
:
additional_dependencies
:
...
...
This diff is collapsed.
Click to expand it.
checkmk/check_aoss_ceilo_archive.sh
+
2
−
2
View file @
5e250e03
...
@@ -7,8 +7,8 @@ warning_threshold_seconds=900
...
@@ -7,8 +7,8 @@ warning_threshold_seconds=900
base_raw_dir
=
"/data/raw/aoss/ceilo"
base_raw_dir
=
"/data/raw/aoss/ceilo"
base_cache_dir
=
"/data/cache/aoss/ceilo"
base_cache_dir
=
"/data/cache/aoss/ceilo"
now_
seconds
=
$(
date
+%
s
)
seconds
_since_midnight
=
$((
$(
date
'
+%
-H *3600 + %-M *60 + %-S'
)
)
)
if
[
$
now_
seconds
-lt
$threshold_seconds
]
;
then
if
[
$seconds
_since_midnight
-lt
$threshold_seconds
]
;
then
# we're just after midnight, check yesterday's directory
# we're just after midnight, check yesterday's directory
data_file_suffix
=
$(
date
-d
yesterday +%Y/%m/%d/aoss_ceilo.%Y-%m-%d.ascii
)
data_file_suffix
=
$(
date
-d
yesterday +%Y/%m/%d/aoss_ceilo.%Y-%m-%d.ascii
)
else
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment