Update some old URL's etc.
Fix bug #7 using patch given by Adam Sampson. Added include to compile on Linux.
Add a default option to the command line parsing. This does the same as the -h flag and shows the usage. The intention is to catch unknown flags and tell the user, rather than printing a warning and loading anyway.
Typo fix :-)
Tidy up of my previous commit to make the command line arguments optional. - Made the default hostname 'i-scream'. Users could have this in their hosts file, or they might have a CNAME to their server. - Added a usage function listing new command line arguments. - Made the server name and port be options (-s and -p) instead of args. - Changed the sort option from -s to -o (order). - Made the host list an option (-l) instead of an argument. - Added sort options for net and disk io. This should be slightly tidier than before, and more useful.
Add option to build default hostname/port in at compile time. This makes it easier for users to run where the sysadmin has preconfigured idar to automatically connect. Pete might want to tidy this up a bit ;)
Proper resize support by catching SIGWINCH. Done some tiding. Added the ability to do process stats (r). Changed the megabytes units to have 2d.p. so it would show more than units of 100k/sec.
Now copes with resizing with regard to x-coord. This also copes with units changing. (u or U) It still doesn't do resizing properly tho :)
Ok, im sure this prob isn't the "right" way to do resizing.. but it seems to work.
Fixed bug which caused it to seg fault if given a invalid host. (I carefully did the check, then forgot to call exit(1).. Ooops :) )
Now works on freebsd too :)
Linux now working.
(unchecked) This update should mean it will compile on linux and freebsd. I think we've got to the point where it should be called 1.1 :) (If this actually works that is :) )
Now allows the user to choose whats being displayed. Currently only allows the toggling of what we display by default, but its minor work adding the others. I think may need to change the display structure, as i dont think i will end up implementing like my original plan was. Currently it does 'm' (memory) 's' (swap) 'l' (load) 'd' (disk_io) 'n' (network) 'p' (paging) 'c' (cpu)
Added support for sorting on the fly. I have followed a basic convention of a capital letter will do sorting, and a lower case letter will change the display properties. Currently q or Q will quit. C will sort by CPU S will sort by Swap M will sort by Memory L will sort by Load N will sort by Network. Network sorting is toggled thru 3 options. First time it will sort by rx+tx. 2nd time it will sort by rx, 3rd time tx. Then it will repeat to the start again. The display function has been updated slightly. The arguments it takes (num_lines) now means the number of lines on the screen, rather than the number of hosts to display. A status of what its sorting by has been added to the bottom line. This line could be used for other "stuff" in the future as well.
Now tests for either curses or ncurses. By default prefers to use curses, but will use ncurses if curses is not available or if forced by a configure flag. Also minor other tweaks.
Allows the user to hit "q" to quit the program. The program is now interactive, as it now uses select to work out if it needs to do something from the user, or from the TCP connection.
Now uses ncurses. Not complete, but more infustructure layed down.
Initial stab at the autoconf/automake stuff for idar. Not sure it's perfect, I've done a lot of this sort of stuff today ;)
The display function has been updated in preperation for being able to display what the user wishes on request. What to sort by is now a optional command line argument. Valid arguments are currently cpu, mem and load. This will also eventually be able to be changed "on the fly". The infastructure for doing this has been built in in this change.
idar is a "top like" client which displays data collected by ihost. It currently displays cpu, load, pageing, mem, swap, net and disk io. There is infastructure to display much more in the future, and to be able to sort on more than just CPU. genmergesort is macro written by mtr to sort a linked list. Inital version 1.0 This compiles and works. It requires libxml2 (but it may work against libxml, but this has not been checked). It also requires ukcprog. This will not currently compile on linux (as it lacks strlcpy). Usage is idar <-d number_lines_to_display> machine_name port <"fqdn1;fqdn2;fqdn3">
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.