refactor(macos): change toStr string
This commit is contained in:
@@ -9,7 +9,7 @@ pub const SystemUptime = struct {
|
||||
minutes: i8,
|
||||
|
||||
pub fn toStr(self: SystemUptime, buf: []u8) ![]u8 {
|
||||
return std.fmt.bufPrint(buf, "Uptime: {} days, {} hours, {} minutes", .{ self.days, self.hours, self.minutes });
|
||||
return std.fmt.bufPrint(buf, "{} days, {} hours, {} minutes", .{ self.days, self.hours, self.minutes });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -18,7 +18,7 @@ pub const KernelInfo = struct {
|
||||
kernel_release: []u8,
|
||||
|
||||
pub fn toStr(self: KernelInfo, buf: []u8) ![]u8 {
|
||||
return std.fmt.bufPrint(buf, "Kernel: {s} {s}", .{ self.kernel_name, self.kernel_release });
|
||||
return std.fmt.bufPrint(buf, "{s} {s}", .{ self.kernel_name, self.kernel_release });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user