Questions tagged [uptime]

uptime is a Unix command which tells how long the system has been running.

Note: Please use for questions relating to the remote monitoring tool Uptime.

173 questions
0
votes
1 answer

get Computer working time using winAPI

I want to get my computer's working time since when I pushed the power button to start my PC using windows APIs. So it is not the system's current time. For example I want to calculate how many seconds passed since windows started. There is a…
Eyüp Akay
  • 21
  • 5
0
votes
1 answer

Getting uptime from RTC

I wanted to get uptime of the system from the RTC in seconds. The point is that while I can sum up values from the RTC time register (RTC_TR) it only works up to 24 hours and then overflows while one day is being added to RTC date register (RTC_DR).…
Paweł J
  • 33
  • 1
  • 10
0
votes
0 answers

Getting the uptime of an elixir process

Given the pid, is it possible to get the uptime, or creation datetime, of an elixir process?
category
  • 2,113
  • 2
  • 22
  • 46
0
votes
1 answer

!UpTime Twitch command (TwitchBot C#)

I was wondering how I would add a command for 'UpTime' in my commands that will show how long the twitch channel has been live for. This is my whole code: https://pastebin.com/ty8J3vYS I'm not sure if I add it into my commands with things added to…
byLimbo
  • 1
  • 1
  • 4
0
votes
1 answer

How to easily 'interval' login a website and check its content whether has changed?

This is a bit high-level solution based question: I have a website, and what I need to do is login->navigate->click category->check whether the specific content has come; every 10 mins. There are quite a few third-party services, but they only…
Xin
  • 33,823
  • 14
  • 84
  • 85
0
votes
0 answers

Last System Shutdown Time is from IIS, not Client?

I am trying to get the time of the last system shutdown time of a client machine and I am using the following method: public static DateTime GetLastSystemShutdown() { string sKey = @"System\CurrentControlSet\Control\Windows"; …
EyeSeeSharp
  • 604
  • 1
  • 8
  • 21
0
votes
1 answer

How do I get system uptime in Mono on Ubuntu Server?

My code on Windows used P/Invoke to call GetTickCount64() from kernel32.dll This doesn't work under Mono on Ubuntu Server 14 - I get EntryPointNotFoundException. There's this approach using PerformanceCounter. It works on Windows but when I use it…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
0
votes
1 answer

Nodejs os.uptime() return incorrect up-time value by millisecond

I want to convert server up-time to days:hours:minutes:second. I use from this code: var os = require('os'); var uptime = os.uptime(); console.log(convertMS(uptime)); and use this code for convert time to days: function convertMS(ms) { var d, h,…
Ehsan Ali
  • 1,362
  • 5
  • 25
  • 51
0
votes
1 answer

How to dectect windows shutdown or restart time using Java?

how to view windows shutdown and restart time using java can anyone help i have code for startup windows Process uptimeProc = Runtime.getRuntime().exec("cmd /c systeminfo | find \"System Boot Time:\"");
0
votes
1 answer

Modelling database for uptime within influxdb efficiently

After having played around with collectd and InfluxDB for a while, I've realized that the uptime is stored each and every time as a single data point, e.g. leading to measurements looking like this: 1469552552940296000 localhost uptime …
Karol Babioch
  • 666
  • 8
  • 16
0
votes
1 answer

How to monitor my web application?

I'm looking for a tool or set of tools or framework, preferably free, for monitoring different parts of my web app such as the api part, the db connection, the connection to a third-party api which it uses. It doesn't have to be sophisticated, it…
Alan Coromano
  • 24,958
  • 53
  • 135
  • 205
0
votes
1 answer

Android device's Uptime not restarting after rebooting it programmatically

I developed an app that has system priveleges. It is able to successfully reboot the device and also shut it down. The problem is that after rebooting the device its uptime (SystemClock.uptimeMillis()) counter does not go back to 0 instead it keeps…
Storo
  • 988
  • 1
  • 7
  • 31
0
votes
1 answer

#c Twitch bot uptime displaying unwanted milliseconds

For the past day or so I've been writing a twitch bot for my channel. Before this I had no knowledge of C# so it could just be a simple fix, but I haven't found any solutions anywhere online. The problem is that when I use !Uptime it displays the…
Kronia
  • 3
  • 1
0
votes
1 answer

Website availability API

I'm one of the developers of TryAgain, an add-on for Firefox that keeps trying to load a webpage when the server cannot be reached. A user recently suggested having the add-on check if the website you're trying to reach is down, or just blocked for…
Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
0
votes
1 answer

NSProcessInfo().systemUptime is wrong

I have a trouble with getting NSTimeInterval after system reboot. This functions gave me a wrong result. The reboot time is restarting when device's battery is charged. There is a trouble on iPhone 5s and iPad 3 (the new). How can I fix it?
Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115