fixed
This commit is contained in:
parent
6d15bf5b9e
commit
2fac712297
@ -225,7 +225,7 @@ int GetModel(const char *title, const FETCH fetch) {
|
||||
if (ptr != NULL)
|
||||
*ptr = '\0';
|
||||
|
||||
printf("%s%s%s%s", fetch.color, title, fetch.font_color, model_buffer);
|
||||
printf("%s%s%s%.25s", fetch.color, title, fetch.font_color, model_buffer);
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
|
@ -11,6 +11,11 @@ typedef struct {
|
||||
/* Config, EDIT THERE */
|
||||
#define COLORS " \033[31mx \033[32mx \033[33mx \033[34mx \033[35mx \033[0m"
|
||||
#define FONT_COLOR "\033[1;37m"
|
||||
#define BAR_WIDTH 10
|
||||
|
||||
/* Full path to capacity file */
|
||||
/* Example: /sys/class/power_supply/battery/capacity */
|
||||
#define BATT_NAME NULL
|
||||
|
||||
/* #define PRINT_TOTAL_MEM */
|
||||
/* #define PRINT_USER_MEM */
|
||||
|
@ -11,6 +11,11 @@ typedef struct {
|
||||
/* Config, EDIT THERE */
|
||||
#define COLORS " \033[31mx \033[32mx \033[33mx \033[34mx \033[35mx \033[0m"
|
||||
#define FONT_COLOR "\033[1;37m"
|
||||
#define BAR_WIDTH 10
|
||||
|
||||
/* Full path to capacity file */
|
||||
/* Example: /sys/class/power_supply/battery/capacity */
|
||||
#define BATT_NAME NULL
|
||||
|
||||
/* #define PRINT_TOTAL_MEM */
|
||||
/* #define PRINT_USER_MEM */
|
||||
|
Loading…
Reference in New Issue
Block a user