Skip to content

Instantly share code, notes, and snippets.

@tpitale
Created November 7, 2013 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpitale/7359235 to your computer and use it in GitHub Desktop.
Save tpitale/7359235 to your computer and use it in GitHub Desktop.
Reading the header info from a whisper (.wsp) file with ruby.
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