File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed 
api/src/unraid-api/graph/resolvers/info/cpu Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 11import  {  Injectable ,  Logger  }  from  '@nestjs/common' ; 
2- import  {  promises  as  fs  }  from  'fs' ; 
2+ import  {  constants  as  fsConstants  }  from  'node: fs' ; 
33import  {  access ,  readdir ,  readFile  }  from  'node:fs/promises' ; 
44import  {  join  }  from  'path' ; 
55
6- const  {  readdir,  readFile,  access }  =  fs ; 
7- const  {  constants : fsConstants  }  =  fs ; 
8- 
96@Injectable ( ) 
107export  class  CpuTopologyService  { 
118    private  readonly  logger  =  new  Logger ( CpuTopologyService . name ) ; 
@@ -196,7 +193,6 @@ export class CpuTopologyService {
196193
197194        const  result : { 
198195            id : number ; 
199-             totalPower : number ; 
200196            power : number ; 
201197            temp : number ; 
202198        } [ ]  =  [ ] ; 
@@ -205,7 +201,6 @@ export class CpuTopologyService {
205201            const  entry  =  powerData [ pkgId ]  ??  { } ; 
206202            result . push ( { 
207203                id : pkgId , 
208-                 totalPower : 0 , 
209204                power : entry . total  ??  - 1 , 
210205                temp : temps [ pkgId ]  ??  - 1 , 
211206            } ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments