Skip to content
Snippets Groups Projects

Button

Merged Siyuan Niu requested to merge button into master
6 files
+ 33
9
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -121,6 +121,7 @@ void CPU::drawPieChart(std::ofstream& myfile) const {
data : efficiency" << _ID << "_" << j << ",\n";
myfile << " backgroundColor : coloR" << _ID << "_" << j << std::endl;
myfile << SCHED_HTML_JS_CONTENT1 << "Average load is " << averageLoad(j) << SCHED_HTML_JS_CONTENT2 << std::endl;
myfile << "$(\"#" << _ID << "_" << j << "\").click(function() {\n";
myfile << " var chart" << _ID << "_" << j << " = new Chart( "<<
"ctx" << _ID << "_" << j << ", {\n \
type : \"pie\",\n";
@@ -137,8 +138,9 @@ void CPU::showPieChart(std::ofstream& myfile) const{
type : \"pie\",\n";
myfile << "data : data " << _ID << this->_cycleTime <<",\n";
myfile << SCHED_HTML_JS_CONTENT2 << std::endl;*/
myfile << SCHED_HTML_JS_BUTTON1 << _ID << "_" << this->_cycleTime << SCHED_HTML_JS_BUTTON2 << std::endl;
myfile << SCHED_HTML_JS_DIV_BEGIN << std::endl;
myfile << SCHED_HTML_JS_BEGIN_CANVAS << _ID << "_" << this->_cycleTime << SCHED_HTML_JS_END_CANVAS <<std::endl;
myfile << SCHED_HTML_JS_BEGIN_CANVAS << _ID << "_" << this->_cycleTime << SCHED_HTML_JS_END_CANVAS << std::endl;
myfile << SCHED_HTML_JS_DIV_END << std::endl;
}
Loading