<div dir="ltr">Sounds like a calculation error. Make sure you&#39;re using the st_blocks element of the stat struct, and not the raw filesize.</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 27, 2017 at 3:43 AM mseaton &lt;<a href="mailto:mseaton@stevens.edu">mseaton@stevens.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I have a question regarding setting environment variables. I am working<br>
of the ls -s option and the blocksize I am getting for each file and<br>
also the total blocksize differs from what the system ls -s is giving.<br>
Why is that?<br>
<br>
Marlon<br>
_______________________________________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu" target="_blank">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs631apue</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Jason Ajmo</div><div>Stevens Institute of Technology</div><div>B.S. Cybersecurity &#39;17</div><div>M.S. Computer Science &#39;18</div><div>0x56FA3123</div></div></div>