mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	count outgoing tags
This commit is contained in:
		
							parent
							
								
									25fb609544
								
							
						
					
					
						commit
						2366cbc833
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -381,10 +381,12 @@ namespace http {
 | 
			
		|||
		s << "<br>\r\n";
 | 
			
		||||
		s << "<b>Tags</b><br>Incoming: <i>" << dest->GetNumIncomingTags () << "</i><br>";
 | 
			
		||||
		if (!dest->GetSessions ().empty ()) {
 | 
			
		||||
			s << "<div class='slide'><label for='slide-tags'>Outgoing:</label>\r\n<input type='checkbox' id='slide-tags'/>\r\n<p class='content'>\r\n";
 | 
			
		||||
			for (const auto& it: dest->GetSessions ())
 | 
			
		||||
				s << i2p::client::context.GetAddressBook ().ToAddress(it.first) << " " << it.second->GetNumOutgoingTags () << "<br>\r\n";
 | 
			
		||||
			s << "</p>\r\n</div>\r\n";
 | 
			
		||||
			std::stringstream tmp_s; uint32_t out_tags = 0;
 | 
			
		||||
			for (const auto& it: dest->GetSessions ()) {
 | 
			
		||||
				tmp_s << i2p::client::context.GetAddressBook ().ToAddress(it.first) << " " << it.second->GetNumOutgoingTags () << "<br>\r\n";
 | 
			
		||||
				out_tags = out_tags + it.second->GetNumOutgoingTags ();
 | 
			
		||||
			}
 | 
			
		||||
			s << "<div class='slide'><label for='slide-tags'>Outgoing: <i>" << out_tags << "</i></label>\r\n<input type='checkbox' id='slide-tags'/>\r\n<p class='content'>\r\n" << tmp_s.str () << "</p>\r\n</div>\r\n";
 | 
			
		||||
		} else
 | 
			
		||||
			s << "Outgoing: <i>0</i><br>\r\n";
 | 
			
		||||
		s << "<br>\r\n";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue