Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
fix: BU port check to determine if data is stale
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil2812 committed Dec 1, 2017
1 parent 4c8b9ce commit efab555
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/js/daqview-react/components/filter-farm/fff-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -764,21 +764,18 @@ namespace DAQView {
buJobCrashStateDisplayClass = "fff-table-jobcrash";
}


let hostname: string = bu.hostname.split(".")[0];


let buUrlDisplay: any = hostname;
let buUrlDisplayClass: string = "fff-table-stale-member-wrapbox"; //assume stale and overwrite if not
let buDebug: string = "Check problems with BU flashlist!";

if (bu.port !=null){
if (bu.port > 0){
buUrlDisplay = <a href={buUrl} target="_blank">{hostname}</a>;
buUrlDisplayClass = "";
buDebug = "";
}


let rate: number = FormatUtility.toFixedNumber(bu.rate / 1000, 3);
let throughput: number = FormatUtility.toFixedNumber(bu.throughput / 1000 / 1000, 1);
let sizeMean: number = FormatUtility.toFixedNumber(bu.eventSizeMean / 1000, 1);
Expand All @@ -802,9 +799,6 @@ namespace DAQView {
let requestsUsedClass: string = FormatUtility.getClassNameForNumber(requestsUsed!=null?requestsUsed:0, FFFTableNumberFormats.REQUESTS_USED);
let requestsBlockedClass: string = FormatUtility.getClassNameForNumber(requestsBlocked!=null?requestsBlocked:0, FFFTableNumberFormats.REQUESTS_BLOCKED);




//invert color when DAQ is stuck, because red colors are missed
if (drawZeroDataFlowComponent && oddRow) {

Expand Down Expand Up @@ -861,8 +855,6 @@ namespace DAQView {
<td className={classNames("fff-table-bu-row-counter",FormatUtility.getClassNameForNumber(bu.fuOutputBandwidthInMB!=null?bu.fuOutputBandwidthInMB:0, FFFTableNumberFormats.BANDWIDTH))}>{bu.fuOutputBandwidthInMB!=null?bu.fuOutputBandwidthInMB.toFixed(2):'*'}</td>

</tr>


);
}
}
Expand Down

0 comments on commit efab555

Please sign in to comment.