mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 12:15:34 +08:00
[feat] update net statistics module
This commit is contained in:
@@ -219,35 +219,35 @@ int Render::NetTrafficStats() {
|
||||
ImGui::Text("%s",
|
||||
localization::video[localization_language_index_].c_str());
|
||||
ImGui::TableNextColumn();
|
||||
BitrateDisplay((int)net_traffic_stats_.video_in);
|
||||
BitrateDisplay((int)net_traffic_stats_.video_inbound_stats.bitrate);
|
||||
ImGui::TableNextColumn();
|
||||
BitrateDisplay((int)net_traffic_stats_.video_out);
|
||||
BitrateDisplay((int)net_traffic_stats_.video_outbound_stats.bitrate);
|
||||
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("%s",
|
||||
localization::audio[localization_language_index_].c_str());
|
||||
ImGui::TableNextColumn();
|
||||
BitrateDisplay((int)net_traffic_stats_.audio_in);
|
||||
BitrateDisplay((int)net_traffic_stats_.audio_inbound_stats.bitrate);
|
||||
ImGui::TableNextColumn();
|
||||
BitrateDisplay((int)net_traffic_stats_.audio_out);
|
||||
BitrateDisplay((int)net_traffic_stats_.audio_outbound_stats.bitrate);
|
||||
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("%s", localization::data[localization_language_index_].c_str());
|
||||
ImGui::TableNextColumn();
|
||||
BitrateDisplay((int)net_traffic_stats_.data_in);
|
||||
BitrateDisplay((int)net_traffic_stats_.data_inbound_stats.bitrate);
|
||||
ImGui::TableNextColumn();
|
||||
BitrateDisplay((int)net_traffic_stats_.data_out);
|
||||
BitrateDisplay((int)net_traffic_stats_.data_outbound_stats.bitrate);
|
||||
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("%s",
|
||||
localization::total[localization_language_index_].c_str());
|
||||
ImGui::TableNextColumn();
|
||||
BitrateDisplay((int)net_traffic_stats_.total_in);
|
||||
BitrateDisplay((int)net_traffic_stats_.total_inbound_stats.bitrate);
|
||||
ImGui::TableNextColumn();
|
||||
BitrateDisplay((int)net_traffic_stats_.total_out);
|
||||
BitrateDisplay((int)net_traffic_stats_.total_outbound_stats.bitrate);
|
||||
|
||||
ImGui::EndTable();
|
||||
}
|
||||
|
||||
2
thirdparty/projectx
vendored
2
thirdparty/projectx
vendored
Submodule thirdparty/projectx updated: 11d84068a4...daef6f19dc
@@ -26,7 +26,7 @@ if is_os("windows") then
|
||||
add_links("Shell32", "windowsapp", "dwmapi", "User32", "kernel32",
|
||||
"SDL2-static", "SDL2main", "gdi32", "winmm", "setupapi", "version",
|
||||
"Imm32", "iphlpapi")
|
||||
add_cxflags("/W4", "/WX")
|
||||
add_cxflags("/WX")
|
||||
elseif is_os("linux") then
|
||||
add_requires("ffmpeg 5.1.2", {system = false})
|
||||
add_syslinks("pthread", "dl")
|
||||
|
||||
Reference in New Issue
Block a user