mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
fixed some display bugs when showing stats
svn path=/trunk/icecast/; revision=5527
This commit is contained in:
parent
fe95280339
commit
97229d9548
@ -484,9 +484,18 @@ void CollectStats(stats_event_t *event)
|
||||
strcpy(tempSource, event->source);
|
||||
|
||||
}
|
||||
if (strlen(tempSource) == 0) {
|
||||
strcpy(tempSource, "Global Stat");
|
||||
}
|
||||
|
||||
int foundit = 0;
|
||||
for (int i=0;i<numMainStats;i++) {
|
||||
if (!strcmp(tempSource, "Global Stat")) {
|
||||
if (gStats[i].stats[0].name == tempElement.name) {
|
||||
gStats[i].stats[0].value = tempElement.value;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!strcmp(gStats[i].source, tempSource)) {
|
||||
int foundit2 = 0;
|
||||
gStats[i].populated = 1;
|
||||
@ -505,6 +514,7 @@ void CollectStats(stats_event_t *event)
|
||||
foundit = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!foundit) {
|
||||
|
||||
if (strlen(tempSource) == 0) {
|
||||
@ -871,6 +881,7 @@ void CIcecast2winDlg::UpdateStatsLists()
|
||||
lvi.iSubItem = 2;
|
||||
lvi.pszText = (LPTSTR)(LPCTSTR)gStats[i].stats[k].value;
|
||||
statusTab.m_GlobalStatList.SetItem(&lvi);
|
||||
break;
|
||||
}
|
||||
if (gStats[i].stats[k].titleFlag) {
|
||||
CString windowTitle = gStats[i].source + " - " + gStats[i].stats[k].name + " - " + gStats[i].stats[k].value;
|
||||
|
Loading…
Reference in New Issue
Block a user