From 76df90ff938b8106b590b6a621f9cf6f49581e30 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 6 Apr 2011 11:28:33 +0200 Subject: [PATCH] Tweak status output for bandwidth display --- bacula/src/filed/status.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bacula/src/filed/status.c b/bacula/src/filed/status.c index 15b90558ce..259bead77f 100644 --- a/bacula/src/filed/status.c +++ b/bacula/src/filed/status.c @@ -147,8 +147,8 @@ static void list_status_header(STATUS_PKT *sp) edit_uint64_with_commas(sm_max_buffers, b5)); sendit(msg.c_str(), len, sp); len = Mmsg(msg, _(" Sizeof: boffset_t=%d size_t=%d debug=%d trace=%d " - "bwlimit=%lldkB/s\n"), sizeof(boffset_t), sizeof(size_t), - debug_level, get_trace(), me->max_bandwidth_per_job/1024); + "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 && plugin_list->size() > 0) { Plugin *plugin; @@ -214,7 +214,7 @@ static void list_running_jobs_plain(STATUS_PKT *sp) edit_uint64_with_commas(njcr->JobFiles, b1), edit_uint64_with_commas(njcr->JobBytes, b2), edit_uint64_with_commas(bps, b3), - njcr->JobErrors, edit_int64(njcr->max_bandwidth, b4)); + njcr->JobErrors, edit_uint64_with_commas(njcr->max_bandwidth, b4)); sendit(msg.c_str(), len, sp); len = Mmsg(msg, _(" Files Examined=%s\n"), edit_uint64_with_commas(njcr->num_files_examined, b1)); -- 2.39.5