mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-15 11:51:48 +02:00
Add more information to webui.
This commit is contained in:
parent
719bfbc89b
commit
4d6d032115
2 changed files with 24 additions and 1 deletions
webui/javascript
|
@ -74,6 +74,16 @@ I2PControl.statusToString = function(status) {
|
|||
}
|
||||
};
|
||||
|
||||
I2PControl.msToString = function(mseconds) {
|
||||
var seconds = mseconds / 1000;
|
||||
var numdays = Math.floor(seconds / 86400);
|
||||
var numhours = Math.floor((seconds % 86400) / 3600);
|
||||
var numminutes = Math.floor(((seconds % 86400) % 3600) / 60);
|
||||
var numseconds = ((seconds % 86400) % 3600) % 60;
|
||||
|
||||
return numdays + "d " + numhours + "h " + numminutes + "m " + numseconds + "s";
|
||||
}
|
||||
|
||||
I2PControl.updateDocument = function(values) {
|
||||
|
||||
for(id in values) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue