@@ -328,6 +328,7 @@ $(function () {
328328 $ ( "#ops_container" ) . show ( ) ;
329329 } else {
330330 if ( ! ( 'write_op_per_sec' in data [ 'pgmap' ] || 'read_op_per_sec' in data [ 'pgmap' ] ) ) {
331+ $ ( "#operations_per_second" ) . html ( 0 ) ;
331332 $ ( "#ops_container" ) . show ( ) ;
332333 } else {
333334 $ ( "#ops_container" ) . hide ( ) ;
@@ -339,11 +340,11 @@ $(function () {
339340 $ ( "#read_operations_per_second" ) . html ( data [ 'pgmap' ] [ 'read_op_per_sec' ] || 0 ) ;
340341 $ ( "#write_ops_container" ) . show ( ) ;
341342 $ ( "#read_ops_container" ) . show ( ) ;
342- } else {
343+ } else {
343344 $ ( "#read_ops_container" ) . hide ( ) ;
344345 $ ( "#write_ops_container" ) . hide ( ) ;
345346 }
346-
347+
347348 // update storage capacity
348349 $ ( "#utilization" ) . dxCircularGauge ( $ . extend ( true , { } , gauge_options , {
349350 value : percentUsed
@@ -373,20 +374,6 @@ $(function () {
373374 $ ( "#recovering_objects" ) . empty ( ) ;
374375 }
375376
376- if ( typeof ( writeOpsPerSec ) != 'undefined' ) {
377- $ ( "#write_operations_per_second" ) . html ( writeOpsPerSec ) ;
378- $ ( "#write_ops_container" ) . show ( ) ;
379- } else {
380- $ ( "#write_ops_container" ) . hide ( ) ;
381- }
382-
383- if ( typeof ( readOpsPerSec ) != 'undefined' ) {
384- $ ( "#read_operations_per_second" ) . html ( readOpsPerSec ) ;
385- $ ( "#read_ops_container" ) . show ( ) ;
386- } else {
387- $ ( "#read_ops_container" ) . hide ( ) ;
388- }
389-
390377 $ ( "#write_bytes" ) . html ( writesPerSec ) ;
391378 $ ( "#read_bytes" ) . html ( readsPerSec ) ;
392379
0 commit comments