Skip to content
Snippets Groups Projects

[Fix] Mermaid gantt diagram scheduler time axis

Merged Maxence Naud requested to merge fix/display/scheduling into main
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -74,7 +74,7 @@ void Aidge::SequentialScheduler::generateScheduling(bool verbose) {
if (verbose) {
printf("\t- consumer: "
"\x1b[1;37m"
"%Q"
"%s"
"\x1b[0m"
"\n\t\tR/C:\t",
(consumer->type() + "_" + std::to_string(reinterpret_cast<uintptr_t>(consumer.get()))).c_str());
@@ -207,7 +207,7 @@ void Aidge::SequentialScheduler::forward(bool forwardDims, bool verbose) {
void Aidge::SequentialScheduler::saveSchedulingDiagram(const std::string& fileName) const {
FILE* fp = std::fopen((fileName + ".mmd").c_str(), "w");
std::fprintf(fp, "gantt\ndateFormat x\naxisFormat %%s ms\n\n");
std::fprintf(fp, "gantt\ndateFormat x\naxisFormat %%Q ms\n\n");
if (!mScheduling.empty()) {
const auto globalStart = mScheduling[0].start;
Loading