13 lines
322 B
TypeScript
13 lines
322 B
TypeScript
import { Variable } from "astal";
|
|
|
|
export default function Ram() {
|
|
const cpu_usage = Variable<string>("").poll(1000, () =>
|
|
computeCPU())
|
|
|
|
return <box className="cpu">
|
|
<label
|
|
className="Time"
|
|
onDestroy={() => cpu_usage.drop()}
|
|
label={cpu_usage()} />
|
|
</box>
|
|
} |