Commit 81689eac authored by incardon's avatar incardon
Browse files

Renaming UpdateTime

parent a58814bb
Pipeline #3618 passed with stages
in 25 minutes and 38 seconds
......@@ -220,7 +220,7 @@ BOOST_AUTO_TEST_CASE(grid_performance_write_report)
StandardXMLPerformanceGraph("grid_performance_funcs.xml",file_xml_ref,cg);
addUpdtateTime(cg,1,"data","grid_performance_funcs");
addUpdateTime(cg,1,"data","grid_performance_funcs");
createCommitFile("data");
cg.write("grid_performance_funcs.html");
......
......@@ -59,7 +59,7 @@ void write_test_report(report_sparse_grid_tests &report_sparsegrid_funcs, std::s
StandardXMLPerformanceGraph(file_xml_results, file_xml_ref, cg, 1);
addUpdtateTime(cg,1,"data","SparseGridGpu_performance");
addUpdateTime(cg,1,"data","SparseGridGpu_performance");
cg.write("SparseGridGpu_performance.html");
}
......
......@@ -582,11 +582,11 @@ BOOST_AUTO_TEST_CASE(vector_performance_write_report)
StandardXMLPerformanceGraph("vector_performance_funcs.xml",file_xml_ref,cg);
addUpdtateTime(cg,1,"data","vector_performance_funcs");
addUpdateTime(cg,1,"data","vector_performance_funcs");
cg.write("vector_performance_funcs.html");
}
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()
\ No newline at end of file
BOOST_AUTO_TEST_SUITE_END()
......@@ -14,7 +14,7 @@
#include <boost/property_tree/xml_parser.hpp>
#include <fstream>
static void addUpdtateTime(GoogleChart & cg, int np, const std::string & base, const std::string & filename)
static void addUpdateTime(GoogleChart & cg, int np, const std::string & base, const std::string & filename)
{
time_t t = time(0); // get time now
struct tm * now = localtime( & t );
......@@ -28,7 +28,7 @@ static void addUpdtateTime(GoogleChart & cg, int np, const std::string & base, c
std::string prev_commit;
std::system(std::string("cat commit_f_" + base + "_300 > test.txt").c_str()); // execute the UNIX command "ls -l >test.txt"
std::system(std::string("cat commit_f_" + base + " > test.txt").c_str()); // execute the UNIX command "ls -l >test.txt"
std::ifstream("test.txt") >> prev_commit;
str << "<h3>Updated: " << now->tm_mday << "/" << now->tm_mon + 1 << "/" << now->tm_year+1900 << " " << now->tm_hour << ":" << now->tm_min << ":"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment