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

Support adding earlier values after newer ones. #147

Merged
merged 2 commits into from Jun 6, 2018

Conversation

ams-tschoening
Copy link
Contributor

Setting startofgraph and endofgraphwas duplicated between all parsers, so I centralized it in base class AllParsers and additionally renamed a bit to to better fit Java naming styles. Afterwards I was easily able to add that newer timestamps not only change endofgraph, but startofgraph as well, so one is able to add older sar files to existing graphs. That didn't work before. Adding older data seems to have simply been ignored somewhere, OTOH AllParser.setDate handled storing an earlier timestamp AND a later one already. So the implementation of both values is now in line.

placed the setting and update of both values in the AllParser base
class, because the code was duplicated between all individual parsers.
Additionally, setting the startOfGraph to some earlier value was not
implemented, while it could easily be supported.
@Pitterling
Copy link
Collaborator

Thanks, please fix the 3 checkstyle errors and i'm going to merge

[ant:checkstyle] [ERROR] /home/travis/build/vlsi/ksar/src/main/java/net/atomique/ksar/AllParser.java:62: Line matches the illegal pattern 'Trailing whitespace'. [Regexp]
[ant:checkstyle] [ERROR] /home/travis/build/vlsi/ksar/src/main/java/net/atomique/ksar/AllParser.java:63: At-clause should have a non-empty description. [NonEmptyAtclauseDescription]
[ant:checkstyle] [ERROR] /home/travis/build/vlsi/ksar/src/main/java/net/atomique/ksar/AllParser.java:81: 'method def modifier' have incorrect indentation level 0, expected level should be 2. 

ams-tschoening added a commit to ams-ts-ksar/ksar that referenced this pull request Jun 6, 2018
@ams-tschoening
Copy link
Contributor Author

Done, please review again.

@Pitterling Pitterling merged commit df0f018 into vlsi:master Jun 6, 2018
@Pitterling
Copy link
Collaborator

Thanks for your contribution

@ams-tschoening ams-tschoening deleted the start_end_of_graph branch June 6, 2018 13:14
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.

None yet

2 participants