🔥 delete

This commit is contained in:
yeyang
2023-05-27 20:37:27 +08:00
parent c109a09ffb
commit 45083090e9
2 changed files with 6 additions and 6 deletions

View File

@@ -95,10 +95,10 @@ export default new class newCommon {
if (typeof format === 'string') {
format = format
.replaceAll('dd', day)
.replaceAll('hh', timeObj.hour)
.replaceAll('mm', timeObj.minute)
.replaceAll('ss', timeObj.second)
.replace(/dd/g, day)
.replace(/hh/g, timeObj.hour)
.replace(/mm/g, timeObj.minute)
.replace(/ss/g, timeObj.second)
return format
}

View File

@@ -303,8 +303,8 @@ export default new class {
vendor, temperatureGpu, utilizationGpu,
memoryTotal, memoryUsed, powerDraw
} = graphics
temperatureGpu &&= temperatureGpu + '℃'
powerDraw &&= powerDraw + 'W'
temperatureGpu && (temperatureGpu = temperatureGpu + '℃')
powerDraw && (powerDraw = powerDraw + 'W')
return {
...this.Circle(utilizationGpu / 100),
inner: Math.round(utilizationGpu) + '%',