If the second number minus the first number equals the third number, everything is working fine, and you should be getting your uptime in seconds. Convert it to regular time by dividing by 60 to get minutes and then once more by 60 to get hours, and double-check it.
If it's correct, then I don't know what could be wrong. The winSysInfo uptime code is almost exactly like that, so you've probably screwed something up in it.
Uptime is generally based on the pagefile time, when it was created till what time it is now. And since you cant delete then make the pagefile during use, it should always be right.
The reason WinSysInfo uses the pagefile to measure uptime is because Windows opens a handle to that file almost as soon as you boot up, and doesn't close that handle until you shut down. As far as I know, the modification timestamp is written at the moment that it opens the file. In essence, the time you get by subtracting the current time from the time of the modification of pagefile.sys is your uptime, give or take about 30 seconds.
It almost seems like pagefile.sys was closed/modified/opened/whatever while Windows was already booted up.
Comments
"1095450940"
[code]<?php
$mtime = filemtime("C:/pagefile.sys");
$time = time();
$uptime = $time - $mtime;
echo "Modification time: $mtime\n";
echo "Current time: $time\n";
echo "Uptime in seconds: $uptime";
?>
If the second number minus the first number equals the third number, everything is working fine, and you should be getting your uptime in seconds. Convert it to regular time by dividing by 60 to get minutes and then once more by 60 to get hours, and double-check it.
If it's correct, then I don't know what could be wrong. The winSysInfo uptime code is almost exactly like that, so you've probably screwed something up in it.
-FishNET
The reason WinSysInfo uses the pagefile to measure uptime is because Windows opens a handle to that file almost as soon as you boot up, and doesn't close that handle until you shut down. As far as I know, the modification timestamp is written at the moment that it opens the file. In essence, the time you get by subtracting the current time from the time of the modification of pagefile.sys is your uptime, give or take about 30 seconds.
It almost seems like pagefile.sys was closed/modified/opened/whatever while Windows was already booted up.
Perhaps your pagefile is a different file? :-?
altho ive had a load of other wierd stuff goin on, i think im gonna do a virus and spyware check......
or maby ill just make my own info page
Hey, it's a possibility.
maby if i tell it to watch a different file......
EDIT: and i turned off auto-reboot, helps if u can find out why it BSoDed
IBM always speaks about Linux, bashes it... but in whole he knows nothing of it.... probaply he never used it even...
-Q
-Q
-Q
now, if i want to add another drive surely i just put this...
but it doesnt want to work, all i get is this...
any ideas?