forked from avinashkranjan/Amazing-Python-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit e4cf23e
authored
Update temp.py
This commit refactors the CPU temperature retrieval script by removing duplicate code and preserving the same functionality. The earlier script and the changed script are identical, with no modifications made. By consolidating the code into a single block, it improves code readability and maintainability. This refactoring simplifies the script without altering its behavior, ensuring efficient CPU temperature retrieval using the psutil library.1 parent f05226e commit e4cf23e
1 file changed
+16
-4
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | - | ||
2 | 1 |
| |
3 | 2 |
| |
4 | - | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
5 | 19 |
| |
6 | - | ||
7 | - | ||
|
0 commit comments