mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-07 21:58:06 -05:00
Add a tooltip for client profile total playtime for hours (#334)
This commit is contained in:
parent
bc3bd5b0f2
commit
b1810b0517
@ -112,11 +112,13 @@ namespace IW4MAdmin.Application.Meta
|
||||
return metaList;
|
||||
}
|
||||
|
||||
metaList.Add(new InformationResponse()
|
||||
var friendlyTime = TimeSpan.FromHours(client.TotalConnectionTime / 3600.0);
|
||||
metaList.Add(new InformationResponse
|
||||
{
|
||||
ClientId = client.ClientId,
|
||||
Key = _transLookup["WEBFRONT_PROFILE_META_PLAY_TIME"],
|
||||
Value = TimeSpan.FromHours(client.TotalConnectionTime / 3600.0).HumanizeForCurrentCulture(),
|
||||
Value = friendlyTime.HumanizeForCurrentCulture(),
|
||||
ToolTipText = $"{friendlyTime.TotalHours:N1} hour(s)",
|
||||
ShouldDisplay = true,
|
||||
Order = 8,
|
||||
Type = MetaType.Information
|
||||
|
Loading…
x
Reference in New Issue
Block a user