Skip to content

Commit 0344355

Browse files
committed
lint
1 parent 9615ee3 commit 0344355

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/widget.tsx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const KernelUsage = (props: {
147147
Timestamp: {kernelPoll.usage?.timestamp?.toLocaleString()}
148148
</div>
149149
<div className="jp-kernelusage-separator">
150-
CPU: {kernelPoll.usage?.kernel_cpu.toFixed(1)}
150+
CPU: {kernelPoll.usage?.kernel_cpu}
151151
</div>
152152
<div className="jp-kernelusage-separator">
153153
Memory: {formatForDisplay(kernelPoll.usage?.kernel_memory)}
@@ -164,19 +164,14 @@ const KernelUsage = (props: {
164164
</div>
165165
<div className="jp-kernelusage-separator">
166166
Available:{' '}
167-
{formatForDisplay(
168-
kernelPoll.usage?.host_virtual_memory.available
169-
)}
167+
{formatForDisplay(kernelPoll.usage?.host_virtual_memory.available)}
170168
</div>
171169
<div className="jp-kernelusage-separator">
172-
Free:{' '}
173-
{formatForDisplay(kernelPoll.usage?.host_virtual_memory.free)}
170+
Free: {formatForDisplay(kernelPoll.usage?.host_virtual_memory.free)}
174171
</div>
175172
<div className="jp-kernelusage-separator">
176173
Inactive:{' '}
177-
{formatForDisplay(
178-
kernelPoll.usage?.host_virtual_memory.inactive
179-
)}
174+
{formatForDisplay(kernelPoll.usage?.host_virtual_memory.inactive)}
180175
</div>
181176
<div className="jp-kernelusage-separator">
182177
Percent: {kernelPoll.usage?.host_virtual_memory.percent.toFixed(1)}
@@ -186,8 +181,7 @@ const KernelUsage = (props: {
186181
{formatForDisplay(kernelPoll.usage?.host_virtual_memory.total)}
187182
</div>
188183
<div className="jp-kernelusage-separator">
189-
Used:{' '}
190-
{formatForDisplay(kernelPoll.usage?.host_virtual_memory.used)}
184+
Used: {formatForDisplay(kernelPoll.usage?.host_virtual_memory.used)}
191185
</div>
192186
<div className="jp-kernelusage-separator">
193187
Wired:{' '}

0 commit comments

Comments
 (0)