shithub: 3dee

Download patch

ref: 57154cc361c6ee0d48cdfac7918dc9bca88ae37c
parent: 454adaf7a34c6fe91a69229f2f52d563c39521ba
author: rodri <rgl@antares-labs.eu>
date: Fri Aug 2 11:26:40 EDT 2024

debug/plmon: info prints and a minor correction.

--- a/debug/plmon.c
+++ b/debug/plmon.c
@@ -106,7 +106,7 @@
 {
 	pal[CMain] = display->black;
 	pal[CBack] = display->white;
-	pal[CTdelim] = eallocimage(display, UR, screen->chan, 1, 0xEEEEEEff);
+	pal[CTdelim] = eallocimage(display, UR, screen->chan, 1, 0xEEEEEEFF);
 	pal[CSelect] = eallocimage(display, Rect(0,0,2,2), screen->chan, 1, DWhite);
 	draw(pal[CSelect], UR, display->black, nil, ZP);
 	draw(pal[CSelect], rectaddpt(UR, Pt(1,1)), display->black, nil, ZP);
@@ -330,6 +330,7 @@
 	Rune r;
 	char *line, *f[3];
 	ulong nf;
+	int i;
 
 	ARGBEGIN{
 	default: usage();
@@ -352,6 +353,10 @@
 		addt(f[0], s);
 	}
 	Bterm(bin);
+
+	print("loaded %lud tasks:\n", sched.ntask);
+	for(i = 0; i < sched.ntask; i++)
+		print("\t%s with %lud times\n", sched.tasks[i].name, sched.tasks[i].ntime);
 
 	if(initdraw(nil, nil, "plmon") < 0)
 		sysfatal("initdraw: %r");