Page 1 of 1

Uptime: Is that a bug?

Posted: Fri Jan 13, 2006 1:35 am
by fabricio82
When I use %_uptime in my nickname, others can see it.

I have a problem in the first 60 minutes.

If my uptime is, for example, 15 minutes and 38 seconds, it shows:

15 days, 38 hours, X minutes, where X is the number of users.

Anybody has the same problem??? :(

[ ]'s



[/i]

Posted: Fri Jan 13, 2006 2:38 am
by zaudragon
I think it’s a problem with the AppleScript. Like “word __ of __” isn’t too reliable; if Days isn’t displayed, hours would be the first number.

Posted: Fri Jan 13, 2006 10:22 pm
by memark
I looked in to this a bit and discovered that depending on your uptime you get around five or six different formats on the output from '/usr/bin/uptime'. I then tried to fix the script, but parsing this via AppleScript and shell scripts is very cumbersome.

I'm not sure how people are using this script, but I would suggest returning the output from the uptime command more directly, though the format may then vary.

Posted: Mon Jan 16, 2006 10:00 pm
by memark
Since noone had any ideas, I went ahead and rewrote it.
http://trac.adiumx.com/ticket/2734