Fix percentage stats to multiply by 100. Adjust container name for packetpool stats.
							parent
							
								
									96b0d1276e
								
							
						
					
					
						commit
						e175cf543c
					
				|  | @ -351,7 +351,7 @@ namespace OpenSim.Framework.Monitoring | ||||||
|                 if (c == 0) |                 if (c == 0) | ||||||
|                     return 0; |                     return 0; | ||||||
| 
 | 
 | ||||||
|                 return (double)Antecedent / c; |                 return (double)Antecedent / c * 100; | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             set |             set | ||||||
|  | @ -367,7 +367,7 @@ namespace OpenSim.Framework.Monitoring | ||||||
|         public override string ToConsoleString() |         public override string ToConsoleString() | ||||||
|         { |         { | ||||||
|             return string.Format( |             return string.Format( | ||||||
|                 "{0}.{1}.{2} : {3:0.###}{4} ({5}/{6})", |                 "{0}.{1}.{2} : {3:0.##}{4} ({5}/{6})", | ||||||
|                 Category, Container, ShortName, Value, UnitName, Antecedent, Consequent); |                 Category, Container, ShortName, Value, UnitName, Antecedent, Consequent); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  | @ -48,14 +48,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | ||||||
|             "PacketsReused", |             "PacketsReused", | ||||||
|             "Packets reused", |             "Packets reused", | ||||||
|             "clientstack", |             "clientstack", | ||||||
|             "simulator", |             "packetpool", | ||||||
|             StatVerbosity.Debug, |             StatVerbosity.Debug, | ||||||
|             "Number of packets reused out of all requests to the packet pool"); |             "Number of packets reused out of all requests to the packet pool"); | ||||||
| 
 | 
 | ||||||
|         private PercentageStat m_blocksReusedStat = new PercentageStat( |         private PercentageStat m_blocksReusedStat = new PercentageStat( | ||||||
|             "BlocksReused", |             "BlocksReused", | ||||||
|             "Blocks reused", |             "Blocks reused", | ||||||
|             "clientstack", |             "packetpool", | ||||||
|             "simulator", |             "simulator", | ||||||
|             StatVerbosity.Debug, |             StatVerbosity.Debug, | ||||||
|             "Number of data blocks reused out of all requests to the packet pool"); |             "Number of data blocks reused out of all requests to the packet pool"); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Justin Clark-Casey (justincc)
						Justin Clark-Casey (justincc)