diff options
| author | hwspeedy <ns@bigbear.dk> | 2024-04-29 09:21:48 +0200 | 
|---|---|---|
| committer | hwspeedy <ns@bigbear.dk> | 2024-04-29 09:21:48 +0200 | 
| commit | 58d2c3b5eae25ef21d6b2f6aa8056a115120480d (patch) | |
| tree | 5be4f21d6d66d44ed0cb466703a0d4b8ac025e13 /modules | |
| parent | 9c1a363694289d7d30d9c9a00c18964b024a7d68 (diff) | |
FIX Readded mem_usage field identifier after app widescreen ration change.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/computer.c | 3 | ||||
| -rw-r--r-- | modules/computer/memory_usage.c | 8 | 
2 files changed, 6 insertions, 5 deletions
| diff --git a/modules/computer.c b/modules/computer.c index 11befa7b..28f630d8 100644 --- a/modules/computer.c +++ b/modules/computer.c @@ -377,10 +377,11 @@ gchar *callback_memory_usage()                 "LoadGraphSuffix= kB\n"                 "RescanInterval=2000\n"  	       "ColumnTitle$TextValue=%s\n" +	       "ColumnTitle$Extra1=%s\n"                 "ColumnTitle$Value=%s\n"                 "ShowColumnHeaders=true\n"                 "%s\n", meminfo, -               _("Description"), _("Value"), /* column labels */ +	       _("Field"), _("Description"), _("Value"), /* column labels */                 lginterval);  } diff --git a/modules/computer/memory_usage.c b/modules/computer/memory_usage.c index a0f2e10c..25cdfed7 100644 --- a/modules/computer/memory_usage.c +++ b/modules/computer/memory_usage.c @@ -76,9 +76,9 @@ void scan_memory_do(void)          }          /*add MemTotal for internal usage*/ -	if(strcmp(newkeys[0],"MemTotal")==0) moreinfo_add_with_prefix("DEV", newkeys[0], g_strdup(newkeys[1])); +	//if(strcmp(newkeys[0],"MemTotal")==0) moreinfo_add_with_prefix("DEV", newkeys[0], g_strdup(newkeys[1])); -        list = g_list_prepend(list, g_strdup_printf("%s=%s", tmp_label, trans_val)); +        list = g_list_prepend(list, g_strdup_printf("%s=%s=%s\n", newkeys[0], trans_val, tmp_label));          g_free(trans_val);          g_strfreev(newkeys); @@ -91,7 +91,7 @@ void scan_memory_do(void)      //add memory information      memstr=strdup("");lgstr=strdup("");      while(list){ -        char **datas = g_strsplit(list->data,"=",2); +        char **datas = g_strsplit(list->data,"=",3);          if (!datas[0]) {              g_strfreev(datas);              break; @@ -99,7 +99,7 @@ void scan_memory_do(void)          moreinfo_add_with_prefix("DEV", datas[0], g_strdup(datas[1])); -        tmp = g_strconcat(memstr, list->data, "\n", NULL); +        tmp = g_strconcat(memstr, datas[0],"=",datas[1],"|",datas[2], "\n", NULL);  	g_free(memstr);  	memstr=tmp; | 
