Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use explicit nvti timestamps #725

Merged
merged 4 commits into from
Sep 7, 2019
Merged

Conversation

janowagner
Copy link
Member

@janowagner janowagner commented Aug 28, 2019

When arriving via OSP, immediately parse timestamps into seconds since epoch.

Checklist:

Set the seconds since epoche in the nvti structure.
Now that the timestamps are explicitly stored in the nvti
as seconds since epoch, use them directly and don't parse
the out of the tags sttring anymore.
Since we store the timestamps now directly and
also use the directly, we do need to append them
to the tags string anymore.
Since the timestamps do not appear anymore in the
tags string, there is no need to parse them out of the
tags string.
Now the tags string can simply directly be inserted
into the database as is.
@mattmundell mattmundell merged commit e1ca23f into greenbone:master Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants