Created
November 7, 2013 18:11
-
-
Save tpitale/7359235 to your computer and use it in GitHub Desktop.
Reading the header info from a whisper (.wsp) file with ruby.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):003:0> pp Wisp.info(File.expand_path('~/Dropbox/Projects/created_or_updated.wsp'));nil | |
{:aggregation_method=>"average", | |
:max_retention=>94608000, | |
:x_files_factor=>0.5, | |
:archives=> | |
[{:offset=>64, | |
:seconds_per_point=>10, | |
:point_count=>241920, | |
:retention=>2419200, | |
:size=>2903040}, | |
{:offset=>2903104, | |
:seconds_per_point=>60, | |
:point_count=>120960, | |
:retention=>7257600, | |
:size=>1451520}, | |
{:offset=>4354624, | |
:seconds_per_point=>600, | |
:point_count=>52560, | |
:retention=>31536000, | |
:size=>630720}, | |
{:offset=>4985344, | |
:seconds_per_point=>3600, | |
:point_count=>26280, | |
:retention=>94608000, | |
:size=>315360}]} | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment