Magnetic field and temperature variations in a toroidal pinch discharge