+
+ len = Mmsg(msg, _("%s %sVersion: %s (%s) %s %s %s\n"),
+ my_name, "", VERSION, BDATE, HOST_OS,
+ DISTNAME, DISTVER);
+ sendit(msg.c_str(), len, sp);
+ bstrftime_nc(dt, sizeof(dt), daemon_start_time);
+ len = Mmsg(msg, _("Daemon started %s. Jobs: run=%d running=%d.\n"),
+ dt, num_jobs_run, job_count());
+ sendit(msg.c_str(), len, sp);
+ len = Mmsg(msg, _(" Heap: heap=%s smbytes=%s max_bytes=%s bufs=%s max_bufs=%s\n"),
+ edit_uint64_with_commas(memused, b1),
+ edit_uint64_with_commas(sm_bytes, b2),
+ edit_uint64_with_commas(sm_max_bytes, b3),
+ edit_uint64_with_commas(sm_buffers, b4),
+ edit_uint64_with_commas(sm_max_buffers, b5));
+ sendit(msg.c_str(), len, sp);
+ len = Mmsg(msg, _(" Sizes: boffset_t=%d size_t=%d debug=%s trace=%d "
+ "mode=%d,%d bwlimit=%skB/s\n"),
+ sizeof(boffset_t), sizeof(size_t),
+ edit_uint64(debug_level, b2), get_trace(), (int)DEVELOPER_MODE, 0,
+ edit_uint64_with_commas(me->max_bandwidth_per_job/1024, b1));
+ sendit(msg.c_str(), len, sp);
+ if (b_plugin_list && b_plugin_list->size() > 0) {
+ Plugin *plugin;
+ int len;
+ pm_strcpy(msg, " Plugin: ");
+ foreach_alist(plugin, b_plugin_list) {
+ len = pm_strcat(msg, plugin->file);
+ /* Print plugin version when debug activated */
+ if (debug_level > 0 && plugin->pinfo) {
+ pInfo *info = (pInfo *)plugin->pinfo;
+ pm_strcat(msg, "(");
+ pm_strcat(msg, NPRT(info->plugin_version));
+ len = pm_strcat(msg, ")");
+ }
+ if (len > 80) {
+ pm_strcat(msg, "\n ");
+ } else {
+ pm_strcat(msg, " ");
+ }
+ }
+ len = pm_strcat(msg, "\n");
+ sendit(msg.c_str(), len, sp);
+ }
+}
+
+/*
+ * List running jobs in for humans.
+ */
+static void list_running_jobs_plain(STATUS_PKT *sp)
+{
+ int total_sec, inst_sec;
+ uint64_t total_bps, inst_bps;
+ POOL_MEM msg(PM_MESSAGE);
+ char b1[50], b2[50], b3[50], b4[50], b5[50], b6[50];
+ int len;
+ bool found = false;
+ JCR *njcr;
+ time_t now = time(NULL);
+ char dt[MAX_TIME_LENGTH];
+
+ Dmsg0(1000, "Begin status jcr loop.\n");
+ len = Mmsg(msg, _("\nRunning Jobs:\n"));
+ sendit(msg.c_str(), len, sp);
+ foreach_jcr(njcr) {
+ bstrftime_nc(dt, sizeof(dt), njcr->start_time);