Uptime: Is that a bug?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
fabricio82
Harmless
Posts: 1
Joined: Fri Jan 13, 2006 1:24 am

Uptime: Is that a bug?

Post 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]
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post 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.
Blog | X(tras)
Communists code without classes.
User avatar
memark
Frappa
Posts: 163
Joined: Sat May 28, 2005 8:44 am
Location: Sweden, Göteborg

Post 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.
Regards
Magnus Erik Markling
User avatar
memark
Frappa
Posts: 163
Joined: Sat May 28, 2005 8:44 am
Location: Sweden, Göteborg

Post by memark »

Since noone had any ideas, I went ahead and rewrote it.
http://trac.adiumx.com/ticket/2734
Regards
Magnus Erik Markling
Post Reply