Skip to content

Commit

Permalink
you missed one
Browse files Browse the repository at this point in the history
  • Loading branch information
Ann1kaB committed Aug 24, 2020
1 parent fa50cb5 commit fdfe74d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fetch_cord/out.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,13 @@
gpuinfo = virtiogpuline[0]
gpuvendor = virtiogpuline[0].split()[2:3].join()

cpusplit = cpuline[0].split()[:-2]
s=' '.join(cpusplit)
if os.name != "nt":
cpusplit = cpuline[0].split()[:-2]
s=' '.join(cpusplit)
cpuinfo = s + ' ' + cpuline[0].split()[-2].replace("0G", "G", 1)
else:
cpusplit = cpuline[0].split()[:-1]
s=' '.join(cpusplit)
cpuinfo = s + ' ' + cpuline[0].split()[-1].replace("0", "", 1)
cpuvendor = cpuline[0].split()[1]
cpumodel = ""
Expand Down

0 comments on commit fdfe74d

Please sign in to comment.