summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-08-02 15:26:40 +0000
committerrodri <rgl@antares-labs.eu>2024-08-02 15:26:40 +0000
commit57154cc361c6ee0d48cdfac7918dc9bca88ae37c (patch)
treeb4242de7beeda85a9ff599e9f24ad8c4f8c19d2f
parent454adaf7a34c6fe91a69229f2f52d563c39521ba (diff)
download3dee-57154cc361c6ee0d48cdfac7918dc9bca88ae37c.tar.gz
3dee-57154cc361c6ee0d48cdfac7918dc9bca88ae37c.tar.bz2
3dee-57154cc361c6ee0d48cdfac7918dc9bca88ae37c.zip
debug/plmon: info prints and a minor correction.
-rw-r--r--debug/plmon.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/debug/plmon.c b/debug/plmon.c
index cf05751..b017820 100644
--- a/debug/plmon.c
+++ b/debug/plmon.c
@@ -106,7 +106,7 @@ initcolors(void)
{
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 @@ threadmain(int argc, char *argv[])
Rune r;
char *line, *f[3];
ulong nf;
+ int i;
ARGBEGIN{
default: usage();
@@ -353,6 +354,10 @@ threadmain(int argc, char *argv[])
}
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");
if((kc = initkeyboard(nil)) == nil)