feat: remove toStr methods
This commit is contained in:
@@ -7,20 +7,12 @@ pub const SystemUptime = struct {
|
||||
days: i8,
|
||||
hours: i8,
|
||||
minutes: i8,
|
||||
|
||||
pub fn toStr(self: SystemUptime, buf: []u8) ![]u8 {
|
||||
return std.fmt.bufPrint(buf, "{} days, {} hours, {} minutes", .{ self.days, self.hours, self.minutes });
|
||||
}
|
||||
};
|
||||
|
||||
/// Struct representing Kernel informations
|
||||
pub const KernelInfo = struct {
|
||||
kernel_name: []u8,
|
||||
kernel_release: []u8,
|
||||
|
||||
pub fn toStr(self: KernelInfo, buf: []u8) ![]u8 {
|
||||
return std.fmt.bufPrint(buf, "{s} {s}", .{ self.kernel_name, self.kernel_release });
|
||||
}
|
||||
};
|
||||
|
||||
/// Returns the hostname.
|
||||
|
||||
Reference in New Issue
Block a user