* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+/** @file server/server-queue.c
+ * @brief Server-specific track queue support
+ */
#include "disorder-server.h"
/* the head of the queue is played next, so normally we add to the tail */
if(q->uptopause == -1) /* Don't know how far thru. */
sofar = -1;
else if(q->lastresumed) /* Has been paused and resumed. */
- sofar = q->uptopause + time(0) - q->lastresumed;
+ sofar = q->uptopause + xtime(0) - q->lastresumed;
else /* Currently paused. */
sofar = q->uptopause;
} else /* Never been paused. */
- sofar = time(0) - q->played;
+ sofar = xtime(0) - q->played;
q->sofar = sofar;
}
}