diff --git a/mutagen/wavpack.py b/mutagen/wavpack.py
index <HASH>..<HASH> 100644
--- a/mutagen/wavpack.py
+++ b/mutagen/wavpack.py
@@ -43,7 +43,7 @@ class WavPackInfo(object):
         self.version = cdata.short_le(header[8:10])
         self.channels = bool(flags & 4) or 2
         self.sample_rate = RATES[(flags >> 23) & 0xF]
-        self.length = float(samples / self.sample_rate)
+        self.length = float(samples) / self.sample_rate
 
     def pprint(self):
         return "WavPack, %.2f seconds, %d Hz" % (self.length, self.sample_rate)
diff --git a/tests/test_wavpack.py b/tests/test_wavpack.py
index <HASH>..<HASH> 100644
--- a/tests/test_wavpack.py
+++ b/tests/test_wavpack.py
@@ -16,7 +16,7 @@ class TWavPack(TestCase):
         self.failUnlessEqual(self.audio.info.sample_rate, 44100)
 
     def test_length(self):
-        self.failUnlessEqual(self.audio.info.length, 3.0)
+        self.failUnlessAlmostEqual(self.audio.info.length, 3.68, 2)
 
     def test_not_my_file(self):
         self.failUnlessRaises(
WavPack: More accurate length calculation (thanks to 'ak').