Improved unique id generation for server

This commit is contained in:
Shoghi Cervantes
2015-05-21 12:59:33 +02:00
parent cde2d39029
commit 46f20d36b3
4 changed files with 44 additions and 12 deletions

View File

@ -40,8 +40,9 @@ class SendUsageTask extends AsyncTask{
$path = "post";
$data = [];
$data["uniqueServerId"] = Utils::getServerUniqueId();
$data["uniqueRequestId"] = Utils::dataToUUID(Utils::getServerUniqueId(), microtime(true));
$data["uniqueServerId"] = $server->getServerUniqueId();
$data["uniqueMachineId"] = Utils::getMachineUniqueId();
$data["uniqueRequestId"] = Utils::dataToUUID($server->getServerUniqueId(), microtime(true));
switch($type){
case self::TYPE_OPEN: