Skip to content

Commit

Permalink
Improve FP message
Browse files Browse the repository at this point in the history
  • Loading branch information
parg committed Jan 27, 2025
1 parent f8fa00d commit 6c80659
Showing 1 changed file with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1526,8 +1526,24 @@ public boolean isFirstPriority() {
( DownloadManagerState.TRANSIENT_FLAG_FRIEND_FP |
DownloadManagerState.TRANSIENT_FLAG_TAG_FP )) != 0 ){

if (rules.bDebugLog)
sExplainFP += "Is FP: Friend(s) have interest or Tag is FP\n";
if (rules.bDebugLog){

boolean f_fp = ( tFlags & DownloadManagerState.TRANSIENT_FLAG_FRIEND_FP ) != 0;
boolean t_fp = ( tFlags & DownloadManagerState.TRANSIENT_FLAG_TAG_FP ) != 0;

String str = "";

if ( f_fp ){
str = "Friend(s) have interest";
if ( t_fp ){
str += " and Tag(s) are FP";
}
}else{
str = "Tag(s) are FP";
}

sExplainFP += "Is FP: " + str + "\n";
}

return( true );
}
Expand Down

0 comments on commit 6c80659

Please sign in to comment.