Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
juga
sbws
Commits
8051e29e
Commit
8051e29e
authored
6 years ago
by
juga
Committed by
Matt Traudt
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix generator started timestamp format
parent
f7c433c1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbws/core/scanner.py
+2
-5
2 additions, 5 deletions
sbws/core/scanner.py
with
2 additions
and
5 deletions
sbws/core/scanner.py
+
2
−
5
View file @
8051e29e
'''
Measure the relays.
'''
from
datetime
import
datetime
from
..lib.circuitbuilder
import
GapsCircuitBuilder
as
CB
from
..lib.resultdump
import
ResultDump
from
..lib.resultdump
import
ResultSuccess
,
ResultErrorCircuit
...
...
@@ -10,6 +8,7 @@ from ..lib.relaylist import RelayList
from
..lib.relayprioritizer
import
RelayPrioritizer
from
..lib.destination
import
DestinationList
from
..util.filelock
import
FileLock
from
..util.timestamp
import
now_isodt_str
# from ..util.simpleauth import authenticate_to_server
# from ..util.sockio import (make_socket, close_socket)
from
sbws.globals
import
(
fail_hard
,
is_initted
)
...
...
@@ -283,9 +282,7 @@ def write_start_ts(conf):
:param ConfigParser conf: configuration
"""
# Using naive object, without timezone, since all datetimes are assumed
# to be always in UTC.
generator_started
=
datetime
.
utcnow
().
replace
(
microsecond
=
0
).
isoformat
()
generator_started
=
now_isodt_str
()
log
.
info
(
'
Scanner started at {}
'
.
format
(
generator_started
))
filepath
=
conf
[
'
paths
'
][
'
started_filepath
'
]
with
FileLock
(
filepath
):
...
...
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