File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
skins/classic/css/base/views Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -331,7 +331,14 @@ function queryRequest() {
331331 // FPS and bandwidth
332332 $ row ['CaptureFPS ' ] = isset ($ monitor ['CaptureFPS ' ]) ? $ monitor ['CaptureFPS ' ] : '0.00 ' ;
333333 $ row ['AnalysisFPS ' ] = isset ($ monitor ['AnalysisFPS ' ]) ? $ monitor ['AnalysisFPS ' ] : '0.00 ' ;
334- $ row ['CaptureBandwidth ' ] = isset ($ monitor ['CaptureBandwidth ' ]) ? $ monitor ['CaptureBandwidth ' ] : 0 ;
334+
335+ // Format bandwidth with units (bytes per second) - use human_filesize for consistency
336+ $ bandwidth = isset ($ monitor ['CaptureBandwidth ' ]) ? $ monitor ['CaptureBandwidth ' ] : 0 ;
337+ if ($ bandwidth > 0 ) {
338+ $ row ['CaptureBandwidth ' ] = human_filesize ($ bandwidth ).'/s ' ;
339+ } else {
340+ $ row ['CaptureBandwidth ' ] = '' ;
341+ }
335342 $ row ['Analysing ' ] = isset ($ monitor ['Analysing ' ]) ? $ monitor ['Analysing ' ] : 'None ' ;
336343 $ row ['Recording ' ] = isset ($ monitor ['Recording ' ]) ? $ monitor ['Recording ' ] : 'None ' ;
337344 $ row ['ONVIF_Event_Listener ' ] = isset ($ monitor ['ONVIF_Event_Listener ' ]) ? $ monitor ['ONVIF_Event_Listener ' ] : 0 ;
Original file line number Diff line number Diff line change 6464 vertical-align : middle;
6565}
6666
67+ .consoleTable thead th .material-icons {
68+ vertical-align : middle;
69+ line-height : inherit;
70+ }
71+
6772.consoleTable tfoot td {
6873 padding-top : 4px ;
6974 vertical-align : middle;
You can’t perform that action at this time.
0 commit comments