File tree 1 file changed +4
-2
lines changed
src/server/system_services
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1133,10 +1133,12 @@ function calc_namespace_resource_mode(namespace_resource) {
1133
1133
if ( ! map_issues_and_monitoring_report . has ( namespace_resource_id ) ) {
1134
1134
map_issues_and_monitoring_report . set ( namespace_resource_id , { last_monitoring : undefined , issues : [ ] } ) ;
1135
1135
}
1136
- const issues_report = map_issues_and_monitoring_report . get ( namespace_resource_id ) . issues ;
1136
+
1137
+ const nsr_report = map_issues_and_monitoring_report . get ( namespace_resource_id ) ;
1138
+ const issues_report = nsr_report . issues ;
1137
1139
const errors_count = _ . reduce ( issues_report , ( acc , issue ) => {
1138
1140
// skip if error timestamp is before of the latest monitoring
1139
- if ( issue . time < namespace_resource . last_monitoring ) {
1141
+ if ( issue . time < nsr_report . last_monitoring ) {
1140
1142
return acc ;
1141
1143
}
1142
1144
const err_type = map_err_to_type_count [ issue . error_code ] || 'io_errors' ;
You can’t perform that action at this time.
0 commit comments