Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- Bacula® is a registered trademark of John Walker.
+ Bacula® is a registered trademark of Kern Sibbald.
The licensor of Bacula is the Free Software Foundation Europe
(FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
Switzerland, email:ftf@fsfeurope.org.
JobPlot::JobPlot(QTreeWidgetItem *parentTreeWidgetItem, JobPlotPass &passVals)
{
setupUserInterface();
- m_name = tr("JobPlot");
- pgInitialize(parentTreeWidgetItem);
+ pgInitialize(tr("JobPlot"), parentTreeWidgetItem);
readSplitterSettings();
QTreeWidgetItem* thisitem = mainWin->getFromHash(this);
thisitem->setIcon(0,QIcon(QString::fromUtf8(":images/applications-graphics.png")));
// attach data
int size = m_pjd.count();
+ int j = 0;
+#if defined(__GNU_C)
double tval[size];
double fval[size];
double bval[size];
- int j = 0;
+#else
+ double *tval;
+ double *fval;
+ double *bval;
+
+ tval = (double *)malloc(size * sizeof(double));
+ fval = (double *)malloc(size * sizeof(double));
+ bval = (double *)malloc(size * sizeof(double));
+#endif
+
foreach (PlotJobData* plotJobData, m_pjd) {
// printf("%.0f %.0f %s\n", plotJobData->bytes, plotJobData->files,
// plotJobData->dt.toString(mainWin->m_dtformat).toUtf8().data());
mX->attach(m_jobPlot);
}
}
+
+#if !defined(__GNU_C)
+ free(tval);
+ free(fval);
+ free(bval);
+#endif
}
/*