News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
murgaLua.sleep
Author Message
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #1
murgaLua.sleep

On WinDoh!s, I get "[string "murgaLua"]:172: attempt to call field 'sleepMilliseconds' (a nil value)"

On Linux, it seems to work, but murgaLua.sleep(7) seems to sleep for 7 seconds and not 7 milliseconds as documented.
---------------------
sleep(miliseconds)

Usage:

murgaLua.sleep(1000)


Sleeps for the specified number of miliseconds without taxing the system.

07-18-2008 10:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #2
RE: murgaLua.sleep

Which version are you using ?

There was a regression, but I thought it was fixed in recent builds.

Cheers
John de Murga

07-18-2008 07:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #3
RE: murgaLua.sleep

Linux version 0.6.6.
Windows 0.6.0

07-18-2008 10:05 PM
Visit this user's website Find all posts by this user Quote this message in a reply
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #4
RE: murgaLua.sleep

It does work with 0.6.8 downloaded from http://www.murga-projects.com/files/

07-19-2008 04:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #5
RE: murgaLua.sleep

murgaLua.getHostOsName() returns "linuxStatic" on Linux.

Documentation states 'Returns the OS murgaLua was build for, currently one of "linux", "windows" or "macos"'.

07-19-2008 09:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #6
RE: murgaLua.sleep

alien.platform serves the same purpose, but it yields 'linux' and murgaLua.getHostOsName() yields 'linuxStatic'.

07-20-2008 07:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: