applied Markus Dolze's patches two "invalid widget id" errors in the lcdproc clien

This commit is contained in:
marschap
2005-02-25 15:03:00 +00:00
parent b3230cf90f
commit a0e8aaf7f0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ battery_screen (int rep, int display)
strcat(buffer, "Unknown");
break;
}
sprintf(buffer, "}\n");
strcat(buffer, "}\n");
if(display)
sock_send_string(sock, buffer);
}
+1 -1
View File
@@ -84,7 +84,7 @@ cpu_smp_screen (int rep, int display)
machine_get_smpload (load, &numprocs);
sock_send_string (sock, "screen_add P\n");
sock_send_string (sock, "widget_del P heartbeat\n");
sock_send_string (sock, "screen_set P -heartbeat off\n");
sprintf (buffer, "screen_set P -name {CPU Use: %s}\n", get_hostname());
sock_send_string (sock, buffer);