--- /root/bacula-git-b/bacula/src/cats/sql.c	2016-02-17 23:18:23.903043500 -0200
+++ /root/bacula-git-a/bacula/src/cats/sql.c	2016-02-18 04:31:56.695043500 -0200
@@ -546,8 +546,15 @@
       if (row[i] == NULL) { 
          bsnprintf(buf, sizeof(buf), " %-*s |", max_len, "NULL"); 
       } else if (mdb->sql_field_is_numeric(field->type) && !jcr->gui && is_an_integer(row[i])) { 
-         bsnprintf(buf, sizeof(buf), " %*s |", max_len, 
-                   add_commas(row[i], ewc)); 
+           /* Check field names and convert to bytes human readable */
+           if( strcmp(field->name, "MaxVolBytes") == 0 || strcmp(field->name, "VolBytes") == 0 || 
+               strcmp(field->name, "JobBytes") == 0 || strcmp(field->name, "Bytes") == 0 ) {
+               bsnprintf(buf, sizeof(buf), " %*sB|", max_len, edit_uint64_with_suffix(atoi(row[i]), ewc));
+           }
+           /* Just add commas */
+           } else {
+               bsnprintf(buf, sizeof(buf), " %*s |", max_len, add_commas(row[i], ewc));
+           }
       } else { 
          bsnprintf(buf, sizeof(buf), " %-*s |", max_len, row[i]); 
       } 
@@ -684,8 +691,17 @@
          if (row[i] == NULL) { 
             bsnprintf(buf, sizeof(buf), " %-*s |", max_len, "NULL"); 
          } else if (mdb->sql_field_is_numeric(field->type) && !jcr->gui && is_an_integer(row[i])) { 
-            bsnprintf(buf, sizeof(buf), " %*s |", max_len, 
-                      add_commas(row[i], ewc)); 
+           /* Check field names and convert to bytes human readable */
+           if( strcmp(field->name, "MaxVolBytes") == 0 || strcmp(field->name, "VolBytes") == 0 || 
+               strcmp(field->name, "JobBytes") == 0 || strcmp(field->name, "Bytes") == 0 ) {
+               bsnprintf(buf, sizeof(buf), " %*sB|", max_len, 
+                         edit_uint64_with_suffix(atoi(row[i]), ewc));
+           }
+           /* Just add commas */
+           } else {
+               bsnprintf(buf, sizeof(buf), " %*s |", max_len, 
+                         add_commas(row[i], ewc));
+           }
          } else { 
             bsnprintf(buf, sizeof(buf), " %-*s |", max_len, row[i]); 
          } 
