File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ export async function execCommand(client, input) {
22
22
const { main : cpuTemperature } = await checkCpuTemperature ( ) ;
23
23
const { currentLoad : cpuUsage } = await currentLoad ( ) ;
24
24
const memoryTest = await mem ( ) ;
25
-
26
25
const memoryPercentage = ( ( memoryTest . used / 1048576 / ( memoryTest . total / 1048576 ) ) * 100 ) . toFixed ( 2 ) ;
27
26
28
27
const args = input . split ( " " ) ;
@@ -51,7 +50,7 @@ export async function execCommand(client, input) {
51
50
. setFooter ( { text : `Page ${ index2 } /${ outputDiscord . length } ` , icon : client . user . displayAvatarURL ( ) } )
52
51
. setDescription ( codeBlock ( stripAnsi ( item , true ) || "No output!" ) ) ;
53
52
54
- if ( index2 == outputDiscord . length ) embed . setDescription ( `${ embed . data . description } \n${ codeBlock ( `CWD: ${ client . customCWD } \nCPU: ${ cpuUsage } % | RAM: ${ memoryPercentage } % | Temp: ${ cpuTemperature } °C` ) } ` ) ;
53
+ if ( index2 == outputDiscord . length ) embed . setDescription ( `${ embed . data . description } \n${ codeBlock ( `CWD: ${ client . customCWD } \nCPU: ${ Math . round ( cpuUsage ) } % | RAM: ${ Math . round ( memoryPercentage ) } % | Temp: ${ Math . round ( cpuTemperature ) } °C` ) } ` ) ;
55
54
56
55
const finalMessage = defaultConfig . channel . messages . cache . first ( ) ;
57
56
if ( index2 !== 1 ) defaultConfig . channel . send ( { embeds : [ embed ] } ) ;
You can’t perform that action at this time.
0 commit comments