402 |
|
memory& = memsts.dwAvailVirtual |
403 |
|
swapFree = memory& \ 1024 |
404 |
|
|
405 |
+ |
uptime = GetTickCount \ 1000 |
406 |
+ |
|
407 |
|
' build the contents of the XML packet |
408 |
|
xml = "<packet seq_no=""" & seqNo & """ machine_name=""" & machineName & """ date=""" & packetDate & """ type=""data"" ip=""" & LocalIP & """>" & _ |
409 |
|
"<os>" & _ |
413 |
|
"<platform>" & osName & "</platform>" & _ |
414 |
|
"<minor_version>" & osVersionMinor & "</minor_version>" & _ |
415 |
|
"<processor>" & processorType & "</processor>" & _ |
416 |
+ |
"<uptime>" & uptime & "</uptime>" & _ |
417 |
|
"</os>" & _ |
418 |
|
"<memory><total>" & memTotal & "</total><free>" & memFree & "</free></memory>" & _ |
419 |
|
"<swap><total>" & swapTotal & "</total><free>" & swapFree & "</free></swap>" & _ |