Skip to content

Commit

Permalink
Always print loaded plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 00659a9 commit a2b1c0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
11 changes: 4 additions & 7 deletions src/dird/ua_status.c
Expand Up @@ -375,6 +375,7 @@ static void do_all_status(UAContext *ua)

void list_dir_status_header(UAContext *ua)
{
int len;
char dt[MAX_TIME_LENGTH];
char b1[35], b2[35], b3[35], b4[35], b5[35];
POOL_MEM msg(PM_FNAME);
Expand All @@ -390,13 +391,9 @@ void list_dir_status_header(UAContext *ua)
edit_uint64_with_commas(sm_max_bytes, b3),
edit_uint64_with_commas(sm_buffers, b4),
edit_uint64_with_commas(sm_max_buffers, b5));
if (debug_level > 0) {
int len;

len = list_dir_plugins(msg);
if (len > 0) {
ua->send_msg("%s\n", msg.c_str());
}
len = list_dir_plugins(msg);
if (len > 0) {
ua->send_msg("%s\n", msg.c_str());
}
}

Expand Down
10 changes: 3 additions & 7 deletions src/filed/status.c
Expand Up @@ -145,13 +145,9 @@ static void list_status_header(STATUS_PKT *sp)
"bwlimit=%skB/s\n"), sizeof(boffset_t), sizeof(size_t),
debug_level, get_trace(), edit_uint64_with_commas(me->max_bandwidth_per_job / 1024, b1));
sendit(msg.c_str(), len, sp);
if (debug_level > 0) {
int len;

len = list_fd_plugins(msg);
if (len > 0) {
sendit(msg.c_str(), len, sp);
}
len = list_fd_plugins(msg);
if (len > 0) {
sendit(msg.c_str(), len, sp);
}
}

Expand Down

0 comments on commit a2b1c0c

Please sign in to comment.