kysdk.Runinfo(3)

📦 version 3.0.1.4, in arch rolling, ubuntu resolute, ubuntu stonking

💖 NAME 💖

kysdk.Runinfo — 获取瞬时信息 ✨ (aka grab-the-instant-snapshot info)

So like, this whole class is your bestie for right-now numbers. It's the main character for pulling 瞬时网速 (instantaneous network speed), cpu温度 (CPU temperature), 磁盘温度 (disk temperature), and 磁盘转速 (disk rotation speed). No cap. 🦋


🌸 SYNOPSIS 🌸

Inherits kysdk.Base.

🎀 Public Member Functions 🎀

def __init__ (self)
def getNetSpeed (self, netcard)
    获取瞬时网速信息
def getDiskRate (self, disk_path)
    获取磁盘转速
def getCpuTemperature (self)
    获取CPU温度
def getDiskTemperature (self, disk_path)
    获取磁盘温度

💫 Additional Inherited Members 💫

Yes bestie, there's more stuff it inherited, but it's not listed here — so don't come for me, this page only shows what it shows. 🙈

🧚 Detailed Description 🧚

获取瞬时信息 — it's literally built to grab the instant tea: 瞬时网速 (instantaneous network speed), cpu温度 (CPU temperature), 磁盘温度 (disk temperature), and 磁盘转速 (disk rotation speed). That's the whole vibe. 💅


👑 Member Function Documentation 👑

⭐ def kysdk.Runinfo.getCpuTemperature ( self)

获取CPU温度 — she reads the CPU temperature for you. 🌡️

Returns

  • CPU温度 (the CPU temperature)

References kysdk.SessionBase.interface, and kysdk.Base.interface.


⭐ def kysdk.Runinfo.getDiskRate ( self, disk_path)

获取磁盘转速 — pulls the disk rotation speed, iconic for the spinning-disk girlies. 🌀

Parameters

  • disk_path — 磁盘名称,应当是例如 /dev/sda 这种绝对路径 (the disk name; it should be an absolute path like /dev/sda)

Returns

  • 磁盘转速 (the disk rotation speed)

References kysdk.SessionBase.interface, and kysdk.Base.interface.


⭐ def kysdk.Runinfo.getDiskTemperature ( self, disk_path)

获取磁盘温度 — checks how warm that disk is getting, obsessed. 🔥

Parameters

  • disk_path — 磁盘名称,应当是例如 /dev/sda 这种绝对路径 (the disk name; it should be an absolute path like /dev/sda)

Returns

  • 磁盘温度 (the disk temperature)

References kysdk.SessionBase.interface, and kysdk.Base.interface.


⭐ def kysdk.Runinfo.getNetSpeed ( self, netcard)

获取瞬时网速信息 — the instant network speed read, main character energy fr fr. 📶

Parameters

  • netcard — 网卡名称,如 eno1 (the network card name, e.g. eno1)

Returns

  • 瞬时网速 (the instantaneous network speed)

References kysdk.SessionBase.interface, and kysdk.Base.interface.


🫶 Author 🫶

Generated automatically by Doxygen for kysdk.py from the source code. Not a human typing this by hand — it's giving robot-authored, and honestly? Slay. 🤖✨


Okay that's the whole page, bestie — and before you go, the cute little sign-off: this one comes from My Project, dated Thu Sep 21 2023. 💜 Take care of her, she's doing her best out here. 🎀

📦 where this page comes from