Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
a5361182
Commit
a5361182
authored
Oct 18, 2018
by
juga
Browse files
Add new constants to use as header attributes
parent
06af6d34
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/lib/v3bwfile.py
View file @
a5361182
...
...
@@ -27,8 +27,13 @@ KEYVALUE_SEP_V200 = ' '
# List of the extra KeyValues accepted by the class
EXTRA_ARG_KEYVALUES
=
[
'software'
,
'software_version'
,
'file_created'
,
'earliest_bandwidth'
,
'generator_started'
]
STATS_KEYVALUES
=
[
'num_measured_relays'
,
'num_target_relays'
,
'num_net_relays'
,
'perc_measured_relays'
,
'perc_measured_targed'
]
KEYVALUES_INT
=
STATS_KEYVALUES
# List of all unordered KeyValues currently being used to generate the file
UNORDERED_KEYVALUES
=
EXTRA_ARG_KEYVALUES
+
[
'latest_bandwidth'
]
UNORDERED_KEYVALUES
=
EXTRA_ARG_KEYVALUES
+
STATS_KEYVALUES
+
\
[
'latest_bandwidth'
]
# List of all the KeyValues currently being used to generate the file
ALL_KEYVALUES
=
[
'version'
]
+
UNORDERED_KEYVALUES
TERMINATOR
=
'===='
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment