File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/compass-serverstats/src/stores Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ const TopStore = Reflux.createStore({
152152 }
153153 t2s [ collname ] = {
154154 loadPercentR : value . readLock . time ,
155- loadPercentL : value . writeLock . time ,
155+ loadPercentW : value . writeLock . time ,
156156 loadPercent : value . total . time ,
157157 } ;
158158 }
@@ -171,15 +171,15 @@ const TopStore = Reflux.createStore({
171171 const t1 =
172172 collname in this . t1s
173173 ? this . t1s [ collname ]
174- : { loadPercent : 0 , loadPercentR : 0 , loadPercentL : 0 } ;
174+ : { loadPercent : 0 , loadPercentR : 0 , loadPercentW : 0 } ;
175175 const t2 = t2s [ collname ] ;
176176
177177 const tDelta = t2 . loadPercent - t1 . loadPercent ;
178178
179- const loadL =
179+ const loadW =
180180 tDelta === 0
181181 ? 0
182- : round ( ( ( t2 . loadPercentL - t1 . loadPercentL ) / tDelta ) * 100 , 0 ) ;
182+ : round ( ( ( t2 . loadPercentW - t1 . loadPercentW ) / tDelta ) * 100 , 0 ) ;
183183 const loadR =
184184 tDelta === 0
185185 ? 0
@@ -189,7 +189,7 @@ const TopStore = Reflux.createStore({
189189 collectionName : collname ,
190190 loadPercent : round ( ( tDelta * 100 ) / ( cadence * numCores ) , 2 ) , // System load.
191191 loadPercentR : loadR ,
192- loadPercentL : loadL ,
192+ loadPercentW : loadW ,
193193 } ) ;
194194 }
195195 this . t1s = t2s ;
You can’t perform that action at this time.
0 commit comments