Skip to content

Commit

Permalink
dcache-core: correct reported units of transfer size and speed
Browse files Browse the repository at this point in the history
Motivation:
The old web pages claim the transfer size and speed are reported in KB and KB/s, although the actually used units are KiB and KiB/s. Reporting the correct unit is important for monitoring.

Modification:
Changed KB to KiB and KB/s to KiB/s.

Result:
The correct units are reported for transfer size and speed.

Target: master
Request: 7.1
Request: 7.0
Request: 6.2
Request: 6.1
Request: 6.0
Request: 5.2
Ticket: #10155
Requires-notes: yes
Requires-book: no
Patch: https://rb.dcache.org/r/13101/
Acked-by: Albert Rossi
  • Loading branch information
lemora committed Jul 23, 2021
1 parent 2cf3ce5 commit 37ae4b8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public class TransferObserverV1
"JobState", // 13
"Submitted", // 14
"Time", // 15
"Trans. (KB)", // 16
"Speed (KB/s)", // 17
"Trans. (KiB)", // 16
"Speed (KiB/s)", // 17
"Running" // 18
};

Expand Down Expand Up @@ -639,8 +639,8 @@ private String createHtmlTable(List<TransferBean> transfers) {
"status", "Status",
"waiting", "Waiting",
"state", "S",
"transferred", "Trans.&nbsp;(KB)",
"speed", "Speed&nbsp;(KB/s)");
"transferred", "Trans.&nbsp;(KiB)",
"speed", "Speed&nbsp;(KiB/s)");
transfers.stream().forEach((t) -> createHtmlTableRow(page, t));
page.endTable();
page.addFooter(getClass().getName());
Expand Down

0 comments on commit 37ae4b8

Please sign in to comment.