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

report.pl does not report correct time if result file is copied #11

Open
at15 opened this issue Jan 25, 2017 · 0 comments
Open

report.pl does not report correct time if result file is copied #11

at15 opened this issue Jan 25, 2017 · 0 comments

Comments

@at15
Copy link

at15 commented Jan 25, 2017

I am using git to synchronous benchmark result from virtual box to the host because I want to track the changes I made to configuration files, however I found when run report.pl <result-file>, I got different result in vm and host. I don't know perl, but I believe the script is using the create time of the result file as the start time of the bechmark, which is only true when you don't copy the result file.

The code that print the date is here

    printf "\n********************************************************************************************************\n";
    printf "# File  : %-20s : %20s\n", $file,ctime((stat($file))[9]);

    print "# THESE ARE PARTIAL STATISTICS\n" if( $cf->getResultField("OSSim","reportName") =~ /signal/i );

A possible solution is to use the beginTime and EndTime in the result file, i.e.

#END Configuration used. Extracted from "esesc.conf":
OSSim:reportName=done
OSSim:beginTime=Tue Jan 24 20:12:21 2017

OSSim:endTime=Tue Jan 24 20:19:58 2017
@at15 at15 changed the title report.pl does not use correct time if result file is copied report.pl does not report correct time if result file is copied Jan 25, 2017
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

No branches or pull requests

1 participant